Skip to content

Commit c12f097

Browse files
authored
fix: HistogramAggregator returns sum when asked for count. (#398)
1 parent c56866b commit c12f097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry/src/sdk/metrics/aggregators/histogram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Count for HistogramAggregator {
6464
self.inner
6565
.read()
6666
.map_err(From::from)
67-
.map(|inner| inner.state.sum.load().to_u64(&NumberKind::U64))
67+
.map(|inner| inner.state.count.load().to_u64(&NumberKind::U64))
6868
}
6969
}
7070

0 commit comments

Comments
 (0)