Skip to content

Commit ccbdef2

Browse files
TheJokrfisherdarling
authored andcommitted
Fix units in HistogramBuilder docs example
prometools TimeHistograms use seconds as their base unit, so the comment on the HistogramBuilder example is wrong. 48f6a99 fixed this in another example, but this one was missed back then.
1 parent b27e639 commit ccbdef2

File tree

1 file changed

+2
-2
lines changed
  • foundations/src/telemetry/metrics

1 file changed

+2
-2
lines changed

foundations/src/telemetry/metrics/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ where
346346
/// #[metrics]
347347
/// pub mod my_app_metrics {
348348
/// #[ctor = HistogramBuilder {
349-
/// // 0 us to 10 ms
350-
/// buckets: &[0.0, 1E-4, 2E-4, 3E-4, 4E-4, 5E-4, 6E-4, 7E-4, 8E-4, 9E-4, 1E-3, 1E-2, 2E-2, 4E-2, 8E-2, 1E-1, 1.0],
349+
/// // 100 us to 1 second
350+
/// buckets: &[1E-4, 2E-4, 3E-4, 4E-4, 5E-4, 6E-4, 7E-4, 8E-4, 9E-4, 1E-3, 1E-2, 2E-2, 4E-2, 8E-2, 1E-1, 1.0],
351351
/// }]
352352
/// pub fn tokio_runtime_task_schedule_delay_histogram(
353353
/// task: String,

0 commit comments

Comments
 (0)