Skip to content

Commit 110bb73

Browse files
authored
Add ExponentialHistograms to data types supported (#4134)
1 parent e8cf94c commit 110bb73

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-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
- Implement Client Key and Certificate File Support for All OTLP Exporters
2931
([#4116](https://github.com/open-telemetry/opentelemetry-python/pull/4116))
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
__all__ = [
4545
"AggregationTemporality",
46+
"Buckets",
4647
"ConsoleMetricExporter",
4748
"InMemoryMetricReader",
4849
"MetricExporter",
@@ -51,6 +52,8 @@
5152
"PeriodicExportingMetricReader",
5253
"DataPointT",
5354
"DataT",
55+
"ExponentialHistogram",
56+
"ExponentialHistogramDataPoint",
5457
"Gauge",
5558
"Histogram",
5659
"HistogramDataPoint",

0 commit comments

Comments
 (0)