Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opentelemetry/src/metrics/instruments/mod.rs
Original file line number Diff line number Diff line change
@@ -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<f64>) -> Self {
self.boundaries = Some(boundaries);
self

0 comments on commit 0f15d21

Please sign in to comment.