Skip to content

Commit be43207

Browse files
committed
feat: add exponential histogram accumulation / aggregator
1 parent d1f9594 commit be43207

File tree

9 files changed

+1798
-4
lines changed

9 files changed

+1798
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
1111

1212
### :rocket: (Enhancement)
1313

14+
* feat(sdk-metrics): add exponential histogram accumulation / aggregator [#3505](https://github.com/open-telemetry/opentelemetry-js/pull/3505) @mwear
1415
* feat(sdk-metrics): add exponential histogram mapping functions [#3504](https://github.com/open-telemetry/opentelemetry-js/pull/3504) @mwear
1516

1617
### :bug: (Bug Fix)

experimental/packages/otlp-transformer/src/metrics/internal.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
AggregationTemporality,
2020
DataPoint,
2121
DataPointType,
22+
ExponentialHistogram,
2223
Histogram,
2324
MetricData,
2425
ResourceMetrics,
@@ -96,7 +97,10 @@ export function toMetric(metricData: MetricData): IMetric {
9697
}
9798

9899
function toSingularDataPoint(
99-
dataPoint: DataPoint<number> | DataPoint<Histogram>,
100+
dataPoint:
101+
| DataPoint<number>
102+
| DataPoint<Histogram>
103+
| DataPoint<ExponentialHistogram>,
100104
valueType: ValueType
101105
) {
102106
const out: INumberDataPoint = {

0 commit comments

Comments
 (0)