Skip to content

Commit

Permalink
OTLP histo sum (open-telemetry#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Boten authored Feb 3, 2022
1 parent cade607 commit 28a67e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def _translate_data(
time_unix_nano=metric.point.time_unix_nano,
start_time_unix_nano=metric.point.start_time_unix_nano,
count=sum(metric.point.bucket_counts),
sum=metric.point.sum,
bucket_counts=metric.point.bucket_counts,
explicit_bounds=metric.point.explicit_bounds,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def test_translate_histogram(self):
start_time_unix_nano=1641946016139533244,
time_unix_nano=1641946016139533244,
count=5,
sum=67,
bucket_counts=[1, 4],
explicit_bounds=[10.0, 20.0],
exemplars=[],
Expand Down

0 comments on commit 28a67e3

Please sign in to comment.