File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
opentelemetry-sdk/src/metrics/internal Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,11 @@ impl<T: Number> ExpoHistogramDataPoint<T> {
100100 if ( self . scale - scale_delta as i8 ) < EXPO_MIN_SCALE {
101101 // With a scale of -10 there is only two buckets for the whole range of f64 values.
102102 // This can only happen if there is a max size of 1.
103- //TBD - check for throttling requirements if can happen too frequent.
103+
104+ // This error is logged when a measurement is dropped because its value is either too high
105+ // or too low, falling outside the allowable range defined by the scale and max_size.
106+ // If these values are expected, the user should adjust the histogram configuration
107+ // to accommodate the range.
104108 otel_error ! (
105109 name: "ExponentialHistogramDataPoint.Scale.Underflow" ,
106110 current_scale = self . scale,
@@ -109,6 +113,7 @@ impl<T: Number> ExpoHistogramDataPoint<T> {
109113 min_scale = EXPO_MIN_SCALE ,
110114 record_min_max = self . record_min_max,
111115 record_sum = self . record_sum,
116+ value = format!( "{:?}" , v) ,
112117 error = format!( "The measurement will be dropped due to scale underflow. Check the histogram configuration" )
113118 ) ;
114119 return ;
You can’t perform that action at this time.
0 commit comments