Skip to content

Commit

Permalink
dex: 🧮 shift dex buckets over by a factor of 1000
Browse files Browse the repository at this point in the history
`metrics` histograms use seconds as a unit of measurement, update the
bucket configuration to reflect that.

see:
* #4502
* #4464

(cherry picked from commit f35b190)
  • Loading branch information
cratelyn authored and conorsch committed Jun 3, 2024
1 parent 56cb225 commit 0a58ee3
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions crates/core/component/dex/src/component/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0a58ee3

Please sign in to comment.