From 0a58ee30cfc1b38ab6b9f984d89d294bee953b94 Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Tue, 28 May 2024 00:00:00 +0000 Subject: [PATCH] =?UTF-8?q?dex:=20=F0=9F=A7=AE=20shift=20dex=20buckets=20o?= =?UTF-8?q?ver=20by=20a=20factor=20of=201000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `metrics` histograms use seconds as a unit of measurement, update the bucket configuration to reflect that. see: * #4502 * #4464 (cherry picked from commit f35b190db65a8669153ff09c759e25adcf3f4405) --- .../component/dex/src/component/metrics.rs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/crates/core/component/dex/src/component/metrics.rs b/crates/core/component/dex/src/component/metrics.rs index 123be8c3fb..d7a7c8b7a0 100644 --- a/crates/core/component/dex/src/component/metrics.rs +++ b/crates/core/component/dex/src/component/metrics.rs @@ -47,22 +47,22 @@ pub fn register_metrics() { // These values may need to be updated over time. // These values are logarithmically spaced from 5ms to 250ms. pub const DEX_BUCKETS: &[f64; 16] = &[ - 5., - 6.48985018, - 8.42363108, - 10.93362074, - 14.19151211, - 18.42015749, - 23.90881249, - 31.03292223, - 40.2798032, - 52.28197763, - 67.86044041, - 88.08081833, - 114.32626298, - 148.39206374, - 192.6084524, - 250., + 0.005, + 0.00648985018, + 0.00842363108, + 0.01093362074, + 0.01419151211, + 0.01842015749, + 0.02390881249, + 0.03103292223, + 0.0402798032, + 0.05228197763, + 0.06786044041, + 0.08808081833, + 0.11432626298, + 0.14839206374, + 0.1926084524, + 0.250, ]; pub const DEX_PATH_SEARCH_DURATION: &str = "penumbra_dex_path_search_duration_seconds";