Skip to content

Commit 6b38349

Browse files
authored
fix: export ExponentialBucketHistogramAggregation from opentelemetry.sdk.metrics.view (#3240)
* fix: export ExponentialBucketHistogramAggregation from opentelemetry.sdk.metrics.view Without this PR if one wants to use exponential histrograms, which were added in realease 1.17.0 (https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md#version-1170038b0-2023-03-22), one needs to import it from the private package opentelemetry.sdk.metrics._internal.aggregation. This PR fixes #3239.
1 parent c11d551 commit 6b38349

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## Unreleased
9+
- Fix exporting of ExponentialBucketHistogramAggregation from opentelemetry.sdk.metrics.view
10+
([#3240](https://github.com/open-telemetry/opentelemetry-python/pull/3240))
911

1012
- Fix headers types mismatch for OTLP Exporters
1113
([#3226](https://github.com/open-telemetry/opentelemetry-python/pull/3226))

opentelemetry-sdk/src/opentelemetry/sdk/metrics/view/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
DefaultAggregation,
1818
DropAggregation,
1919
ExplicitBucketHistogramAggregation,
20+
ExponentialBucketHistogramAggregation,
2021
LastValueAggregation,
2122
SumAggregation,
2223
)
@@ -27,6 +28,7 @@
2728
"DefaultAggregation",
2829
"DropAggregation",
2930
"ExplicitBucketHistogramAggregation",
31+
"ExponentialBucketHistogramAggregation",
3032
"LastValueAggregation",
3133
"SumAggregation",
3234
"View",

0 commit comments

Comments
 (0)