Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ExponentialHistograms to data types supported
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
bogdandrutu committed Aug 20, 2024
1 parent ea4616d commit f983ae2
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#4103](https://github.com/open-telemetry/opentelemetry-python/pull/4103))
- Update semantic conventions to version 1.27.0
([#4104](https://github.com/open-telemetry/opentelemetry-python/pull/4104))
- Export ExponentialHistogram and ExponentialHistogramDataPoint
([#4134](https://github.com/open-telemetry/opentelemetry-python/pull/4134))

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

Original file line number Diff line number Diff line change
@@ -183,8 +183,10 @@ def to_json(self, indent=4) -> str:


# pylint: disable=invalid-name
DataT = Union[Sum, Gauge, Histogram]
DataPointT = Union[NumberDataPoint, HistogramDataPoint]
DataT = Union[Sum, Gauge, Histogram, ExponentialHistogram]
DataPointT = Union[
NumberDataPoint, HistogramDataPoint, ExponentialHistogramDataPoint
]


@dataclass(frozen=True)
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@

__all__ = [
"AggregationTemporality",
"Buckets",
"ConsoleMetricExporter",
"InMemoryMetricReader",
"MetricExporter",
@@ -51,6 +52,8 @@
"PeriodicExportingMetricReader",
"DataPointT",
"DataT",
"ExponentialHistogram",
"ExponentialHistogramDataPoint",
"Gauge",
"Histogram",
"HistogramDataPoint",

0 comments on commit f983ae2

Please sign in to comment.