{"version":3,"file":"Drop.mjs","names":[],"sources":["../../src/aggregator/Drop.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { HrTime } from '@opentelemetry/api';\nimport type { AggregationTemporality } from '../export/AggregationTemporality';\nimport type { MetricData, MetricDescriptor } from '../export/MetricData';\nimport type { Maybe } from '../utils';\nimport type { Aggregator, AccumulationRecord } from './types';\nimport { AggregatorKind } from './types';\n\n/** Basic aggregator for None which keeps no recorded value. */\nexport class DropAggregator implements Aggregator<undefined> {\n  kind: AggregatorKind.DROP = AggregatorKind.DROP;\n\n  createAccumulation() {\n    return undefined;\n  }\n\n  merge(_previous: undefined, _delta: undefined) {\n    return undefined;\n  }\n\n  diff(_previous: undefined, _current: undefined) {\n    return undefined;\n  }\n\n  toMetricData(\n    _descriptor: MetricDescriptor,\n    _aggregationTemporality: AggregationTemporality,\n    _accumulationByAttributes: AccumulationRecord<undefined>[],\n    _endTime: HrTime\n  ): Maybe<MetricData> {\n    return undefined;\n  }\n}\n"],"mappings":";;AAaA,IAAa,iBAAb,MAA6D;CAC3D,OAAA;CAEA,qBAAqB,CAErB;CAEA,MAAM,WAAsB,QAAmB,CAE/C;CAEA,KAAK,WAAsB,UAAqB,CAEhD;CAEA,aACE,aACA,yBACA,2BACA,UACmB,CAErB;AACF"}