Skip to content

Commit 0813ad8

Browse files
committed
use getter
1 parent bcbff63 commit 0813ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-proto/src/transform/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ pub mod tonic {
223223
explicit_bounds: dp.bounds().collect(),
224224
exemplars: dp.exemplars().map(Into::into).collect(),
225225
flags: TonicDataPointFlags::default() as u32,
226-
min: dp.min.map(Numeric::into_f64),
227-
max: dp.max.map(Numeric::into_f64),
226+
min: dp.min().map(Numeric::into_f64),
227+
max: dp.max().map(Numeric::into_f64),
228228
})
229229
.collect(),
230230
aggregation_temporality: TonicTemporality::from(hist.temporality()).into(),

0 commit comments

Comments
 (0)