From 0889833254c7743b33c753b6b6fbe942fa05d20a Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:35:11 +0000 Subject: [PATCH] Update doc comments --- opentelemetry/src/metrics/instruments/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opentelemetry/src/metrics/instruments/mod.rs b/opentelemetry/src/metrics/instruments/mod.rs index c9319d6615..44c4c72f0b 100644 --- a/opentelemetry/src/metrics/instruments/mod.rs +++ b/opentelemetry/src/metrics/instruments/mod.rs @@ -78,6 +78,10 @@ impl<'a, T> HistogramBuilder<'a, T> { } /// Set the boundaries for this histogram. + /// + /// Setting boundaries is optional. By default, the boundaries are set to: + /// + /// `[0.0, 5.0, 10.0, 25.0, 50.0, 75.0, 100.0, 250.0, 500.0, 750.0, 1000.0, 2500.0, 5000.0, 7500.0, 10000.0]` pub fn with_boundaries(mut self, boundaries: Vec) -> Self { self.boundaries = Some(boundaries); self