{"version":3,"file":"AggregationSelector.mjs","names":[],"sources":["../../src/export/AggregationSelector.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AggregationTemporality } from './AggregationTemporality';\nimport type { InstrumentType } from './MetricData';\nimport type { AggregationOption } from '../view/AggregationOption';\nimport { AggregationType } from '../view/AggregationOption';\n\n/**\n * Aggregation selector based on metric instrument types.\n */\nexport type AggregationSelector = (\n  instrumentType: InstrumentType\n) => AggregationOption;\n\n/**\n * Aggregation temporality selector based on metric instrument types.\n */\nexport type AggregationTemporalitySelector = (\n  instrumentType: InstrumentType\n) => AggregationTemporality;\n\nexport const DEFAULT_AGGREGATION_SELECTOR: AggregationSelector =\n  _instrumentType => {\n    return {\n      type: AggregationType.DEFAULT,\n    };\n  };\n\nexport const DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR: AggregationTemporalitySelector =\n  _instrumentType => AggregationTemporality.CUMULATIVE;\n"],"mappings":";;;AAwBA,MAAa,gCACX,oBAAmB;CACjB,OAAO,EACL,MAAA,EACF;AACF;AAEF,MAAa,4CACX,oBAAA"}