Skip to content

Commit

Permalink
Add ExponentialHistograms to data types supported (#4134)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdandrutu committed Aug 20, 2024
1 parent e8cf94c commit 110bb73
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))
- Implement Client Key and Certificate File Support for All OTLP Exporters
([#4116](https://github.com/open-telemetry/opentelemetry-python/pull/4116))

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 110bb73

Please sign in to comment.