From 809683bb18c5fc687711cc5561555c72eb8273c9 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Sat, 7 Mar 2026 18:29:42 +0100 Subject: [PATCH] extend response time histogram buckets to be able to see longer requests --- crates/bin/docs_rs_web/src/metrics.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bin/docs_rs_web/src/metrics.rs b/crates/bin/docs_rs_web/src/metrics.rs index 9c763fc23..1548f7abf 100644 --- a/crates/bin/docs_rs_web/src/metrics.rs +++ b/crates/bin/docs_rs_web/src/metrics.rs @@ -20,7 +20,8 @@ use std::{borrow::Cow, sync::Arc, time::Instant}; /// /// Otel default buckets are not suited for that. pub const RESPONSE_TIME_HISTOGRAM_BUCKETS: &[f64] = &[ - 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10.0, + 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 1.5, 2.5, 3.5, 5.0, 7.5, 10.0, + 15.0, 20.0, 30.0, 45.0, 60.0, 90.0, 120.0, ]; #[derive(Debug)]