From 63728ccd2fe42306b1eb5095d0f57bad10cf19f4 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:44:22 -0700 Subject: [PATCH] Update doc comments (#2149) --- 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