feat: extend duration histograms down to 1ms (#4854)

5ms are quite long considering that many requests take way below 100ms in
total. Let's add two more levels on the lower end of the spectrum.

Since we only do not use data-dependent histograms (i.e. do not include
table or namespace names), the overhead should be acceptable.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Marco Neumann 2022-06-14 17:30:00 +02:00 committed by GitHub
parent 34e8659876
commit f7fbc67b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ impl Default for DurationHistogramOptions {
fn default() -> Self {
Self {
buckets: vec![
Duration::from_millis(1),
Duration::from_micros(2_500),
Duration::from_millis(5),
Duration::from_millis(10),
Duration::from_millis(25),