Skip to content

Commit

Permalink
fix histogram configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed Nov 26, 2024
1 parent 1560f8f commit b7356dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,14 @@ pub struct RuntimeMetrics {
///
/// ##### Examples
/// ```
/// use tokio::runtime::HistogramScale;
/// use tokio::runtime::HistogramConfiguration;
/// use std::time::Duration;
///
/// let config = HistogramConfiguration::linear(Duration::from_micros(50), 12);
///
/// let rt = tokio::runtime::Builder::new_multi_thread()
/// .enable_metrics_poll_time_histogram()
/// .metrics_poll_time_histogram_scale(HistogramScale::Linear)
/// .metrics_poll_time_histogram_resolution(Duration::from_micros(50))
/// .metrics_poll_time_histogram_buckets(12)
/// .metrics_poll_time_histogram_configuration(config)
/// .build()
/// .unwrap();
///
Expand Down

0 comments on commit b7356dd

Please sign in to comment.