import "../export/MetricData.cjs"; import "../utils.cjs"; import "../InstrumentDescriptor.cjs"; import { Attributes, HrTime } from "@opentelemetry/api"; //#region src/aggregator/types.d.ts /** DataPoint value type for SumAggregation. */ type Sum = number; /** DataPoint value type for LastValueAggregation. */ type LastValue = number; /** DataPoint value type for HistogramAggregation. */ interface Histogram { /** * Buckets are implemented using two different arrays: * - boundaries: contains every finite bucket boundary, which are inclusive upper bounds * - counts: contains event counts for each bucket * * Note that we'll always have n+1 buckets, where n is the number of boundaries. * This is because we need to count events that are higher than the upper boundary. * * Example: if we measure the values: [5, 30, 5, 40, 5, 15, 15, 15, 25] * with the boundaries [ 10, 20, 30 ], we will have the following state: * * buckets: { * boundaries: [10, 20, 30], * counts: [3, 3, 2, 1], * } */ buckets: { boundaries: number[]; counts: number[]; }; sum?: number; count: number; min?: number; max?: number; } /** DataPoint value type for ExponentialHistogramAggregation. */ interface ExponentialHistogram { count: number; sum?: number; scale: number; zeroCount: number; positive: { offset: number; bucketCounts: number[]; }; negative: { offset: number; bucketCounts: number[]; }; min?: number; max?: number; } //#endregion export { ExponentialHistogram, Histogram, LastValue, Sum }; //# sourceMappingURL=types.d.cts.map