Skip to content

Commit b4c5e70

Browse files
committed
nits
1 parent 8377879 commit b4c5e70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
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)

opentelemetry-sdk/src/metrics/meter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)