Skip to content

Commit

Permalink
fix: HistogramAggregator returns sum when asked for count. (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyCpp committed Dec 27, 2020
1 parent c56866b commit c12f097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry/src/sdk/metrics/aggregators/histogram.rs
Expand Up @@ -64,7 +64,7 @@ impl Count for HistogramAggregator {
self.inner
.read()
.map_err(From::from)
.map(|inner| inner.state.sum.load().to_u64(&NumberKind::U64))
.map(|inner| inner.state.count.load().to_u64(&NumberKind::U64))
}
}

Expand Down

0 comments on commit c12f097

Please sign in to comment.