Skip to content

Commit

Permalink
Add min max fields to Histogram (open-telemetry#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl authored Jun 14, 2022
1 parent e073d4d commit ca7a3fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.12.0rc1-0.31b0...HEAD)

- Add min/max fields to Histogram
([#2759](https://github.com/open-telemetry/opentelemetry-python/pull/2759))
- `opentelemetry-exporter-otlp-proto-http` Add support for OTLP/HTTP log exporter
([#2462](https://github.com/open-telemetry/opentelemetry-python/pull/2462))
- Fix yield of `None`-valued points
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def _translate_data(
sum=data_point.sum,
bucket_counts=data_point.bucket_counts,
explicit_bounds=data_point.explicit_bounds,
max=data_point.max,
min=data_point.min,
)
pb2_metric.histogram.aggregation_temporality = (
metric.data.aggregation_temporality
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,8 @@ def test_translate_histogram(self):
explicit_bounds=[10.0, 20.0],
exemplars=[],
flags=pb2.DataPointFlags.FLAG_NONE,
max=18.0,
min=8.0,
)
],
aggregation_temporality=AggregationTemporality.DELTA,
Expand Down Expand Up @@ -782,6 +784,8 @@ def test_translate_multiple_scope_histogram(self):
explicit_bounds=[10.0, 20.0],
exemplars=[],
flags=pb2.DataPointFlags.FLAG_NONE,
max=18.0,
min=8.0,
)
],
aggregation_temporality=AggregationTemporality.DELTA,
Expand Down Expand Up @@ -816,6 +820,8 @@ def test_translate_multiple_scope_histogram(self):
explicit_bounds=[10.0, 20.0],
exemplars=[],
flags=pb2.DataPointFlags.FLAG_NONE,
max=18.0,
min=8.0,
)
],
aggregation_temporality=AggregationTemporality.DELTA,
Expand Down Expand Up @@ -857,6 +863,8 @@ def test_translate_multiple_scope_histogram(self):
explicit_bounds=[10.0, 20.0],
exemplars=[],
flags=pb2.DataPointFlags.FLAG_NONE,
max=18.0,
min=8.0,
)
],
aggregation_temporality=AggregationTemporality.DELTA,
Expand Down Expand Up @@ -898,6 +906,8 @@ def test_translate_multiple_scope_histogram(self):
explicit_bounds=[10.0, 20.0],
exemplars=[],
flags=pb2.DataPointFlags.FLAG_NONE,
max=18.0,
min=8.0,
)
],
aggregation_temporality=AggregationTemporality.DELTA,
Expand Down

0 comments on commit ca7a3fa

Please sign in to comment.