Skip to content

Commit 6968110

Browse files
frailltMindaugas Vinkelis
authored and
Mindaugas Vinkelis
committed
ValueMap interface change
1 parent 3976f3d commit 6968110

File tree

7 files changed

+306
-221
lines changed

7 files changed

+306
-221
lines changed

opentelemetry-sdk/src/metrics/internal/exponential_histogram.rs

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ impl<T: Number> ExpoHistogram<T> {
343343
pub(crate) fn measure(&self, value: T, attrs: &[KeyValue]) {
344344
let f_value = value.into_float();
345345
// Ignore NaN and infinity.
346+
// Only makes sense if T is f64, maybe this could be no-op for other cases?
346347
if f_value.is_infinite() || f_value.is_nan() {
347348
return;
348349
}

0 commit comments

Comments
 (0)