Skip to content

Commit 682e97c

Browse files
authored
pyth-wormhole-attester: v1.3.1, use different manual buckets (#452)
* pyth-wormhole-attester: v1.3.1, use different manual buckets * Update description in metric registration
1 parent 0a93d47 commit 682e97c

File tree

1 file changed

+2
-3
lines changed
  • wormhole-attester/client/src

1 file changed

+2
-3
lines changed

wormhole-attester/client/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ lazy_static! {
104104
.expect("FATAL: Could not instantiate LAST_SEQNO_GAUGE");
105105
static ref SOL_RPC_TX_PROCESSING_HIST: Histogram = register_histogram!(
106106
"sol_rpc_tx_processing",
107-
"How long in milliseconds it takes to send a transaction to the Solana RPC",
108-
prometheus::exponential_buckets(0.016, 2.0, 13) // 0.016s, 0.032s, 0.064s, [...], 65.536s
109-
.expect("FATAL: Could not instantiate buckets for SOL_RPC_TX_PROCESSING_HIST")
107+
"How long in seconds it takes to send a transaction to the Solana RPC",
108+
vec![0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 5.0, 10.0, 20.0, 30.0, 60.0] // Buckets, 1.0 = 1 second
110109
)
111110
.expect("FATAL: Could not instantiate SOL_RPC_TX_PROCESSING_HIST");
112111
}

0 commit comments

Comments
 (0)