Skip to content

Commit 15764d6

Browse files
committed
Add ExponentialHistograms to data types supported
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
1 parent ea4616d commit 15764d6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
([#4103](https://github.com/open-telemetry/opentelemetry-python/pull/4103))
2626
- Update semantic conventions to version 1.27.0
2727
([#4104](https://github.com/open-telemetry/opentelemetry-python/pull/4104))
28+
- Export ExponentialHistogram and ExponentialHistogramDataPoint
29+
([#4134](https://github.com/open-telemetry/opentelemetry-python/pull/4134))
2830

2931
## Version 1.26.0/0.47b0 (2024-07-25)
3032

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/point.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ def to_json(self, indent=4) -> str:
183183

184184

185185
# pylint: disable=invalid-name
186-
DataT = Union[Sum, Gauge, Histogram]
187-
DataPointT = Union[NumberDataPoint, HistogramDataPoint]
186+
DataT = Union[Sum, Gauge, Histogram, ExponentialHistogram]
187+
DataPointT = Union[
188+
NumberDataPoint, HistogramDataPoint, ExponentialHistogramDataPoint
189+
]
188190

189191

190192
@dataclass(frozen=True)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
"PeriodicExportingMetricReader",
5252
"DataPointT",
5353
"DataT",
54+
"ExponentialHistogram",
55+
"ExponentialHistogramDataPoint",
5456
"Gauge",
5557
"Histogram",
5658
"HistogramDataPoint",

0 commit comments

Comments
 (0)