From ce0e1e6f1b24eec77cc407e7bafea665c4ba167f Mon Sep 17 00:00:00 2001 From: andll Date: Mon, 13 Jan 2025 12:05:11 -0800 Subject: [PATCH 1/2] Better latency buckets --- crates/typed-store/src/metrics.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/typed-store/src/metrics.rs b/crates/typed-store/src/metrics.rs index 76e23386594b1..5ee9efa53c62d 100644 --- a/crates/typed-store/src/metrics.rs +++ b/crates/typed-store/src/metrics.rs @@ -19,7 +19,10 @@ thread_local! { } const LATENCY_SEC_BUCKETS: &[f64] = &[ - 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1., 2.5, 5., 10., 20., 30., 60., 90., + 0.00001, 0.00005, // 10 mcs, 50 mcs + 0.0001, 0.0002, 0.0003, 0.0004, 0.0005, // 100..500 mcs + 0.001, 0.002, 0.003, 0.004, 0.005, // 1..5ms + 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1., 2.5, 5., 10. ]; #[derive(Debug, Clone)] From 332be6e4e1f2a539f80f3be4f233438d9ba4e6eb Mon Sep 17 00:00:00 2001 From: andll Date: Mon, 13 Jan 2025 17:15:58 -0800 Subject: [PATCH 2/2] fmt --- crates/typed-store/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typed-store/src/metrics.rs b/crates/typed-store/src/metrics.rs index 5ee9efa53c62d..8beb84d260efe 100644 --- a/crates/typed-store/src/metrics.rs +++ b/crates/typed-store/src/metrics.rs @@ -22,7 +22,7 @@ const LATENCY_SEC_BUCKETS: &[f64] = &[ 0.00001, 0.00005, // 10 mcs, 50 mcs 0.0001, 0.0002, 0.0003, 0.0004, 0.0005, // 100..500 mcs 0.001, 0.002, 0.003, 0.004, 0.005, // 1..5ms - 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1., 2.5, 5., 10. + 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1., 2.5, 5., 10., ]; #[derive(Debug, Clone)]