File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3434
3535 - * * Bug Fix : ** Validates the `with_boundaries ` bucket boundaries used in
3636 Histograms . The boundaries provided by the user must not contain `f64 :: NAN `,
37- `f64 :: INFINITY `, `f64 :: NEG_INFINITY ` and must be sorted in strictly
37+ `f64 :: INFINITY ` or `f64 :: NEG_INFINITY ` and must be sorted in strictly
3838 increasing order , and contain no duplicates . Instruments will not record
3939 measurements if the boundaries are invalid .
4040 [#2351 ](https : // github.com/open-telemetry/opentelemetry-rust/pull/2351)
Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ fn validate_bucket_boundaries(boundaries: &[f64]) -> MetricResult<()> {
555555 for boundary in boundaries {
556556 if boundary. is_nan ( ) || boundary. is_infinite ( ) {
557557 return Err ( MetricError :: InvalidInstrumentConfiguration (
558- "Buckets must not contain NaN, +Inf, or -Inf" ,
558+ "Bucket boundaries must not contain NaN, +Inf, or -Inf" ,
559559 ) ) ;
560560 }
561561 }
@@ -564,7 +564,7 @@ fn validate_bucket_boundaries(boundaries: &[f64]) -> MetricResult<()> {
564564 for i in 1 ..boundaries. len ( ) {
565565 if boundaries[ i] <= boundaries[ i - 1 ] {
566566 return Err ( MetricError :: InvalidInstrumentConfiguration (
567- "Buckets must be sorted and non-duplicate" ,
567+ "Bucket boundaries must be sorted and non-duplicate" ,
568568 ) ) ;
569569 }
570570 }
You can’t perform that action at this time.
0 commit comments