Skip to content

Commit

Permalink
Add min max fields to Histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Apr 16, 2022
1 parent 8c5e3df commit 9ffe569
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def _translate_data(
sum=metric.point.sum,
bucket_counts=metric.point.bucket_counts,
explicit_bounds=metric.point.explicit_bounds,
max=metric.point.max,
min=metric.point.min
)
pbmetric.histogram.aggregation_temporality = (
metric.point.aggregation_temporality
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,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

0 comments on commit 9ffe569

Please sign in to comment.