Skip to content

Commit

Permalink
Add ExponentialHistograms to data types supported
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Aug 20, 2024
1 parent ea4616d commit f983ae2
Show file tree
Hide file tree
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
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

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

0 comments on commit f983ae2

Please sign in to comment.