Skip to content

Commit 3d8c8a4

Browse files
authored
Capture larger values for staleness metric (#60)
1 parent 3e252e1 commit 3d8c8a4

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

Cargo.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ hex = "0.4"
2020
clap = { version = "4.5.17", features = ["derive"] }
2121
tracing = "0.1.37"
2222
serde_with = "3.11.0"
23+
24+
# Sui dependencies
2325
sui_types = { git = "https://github.com/mystenlabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "sui-types"}
26+
mysten-service = { git = "https://github.com/mystenlabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "mysten-service" }
27+
sui_sdk = { git = "https://github.com/mystenlabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "sui-sdk"}
28+
shared_crypto = { git = "https://github.com/MystenLabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "shared-crypto" }
2429

2530
[profile.release]
2631
panic = 'abort'

crates/crypto/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ license.workspace = true
99
fastcrypto.workspace = true
1010
rand.workspace = true
1111
serde.workspace = true
12-
serde_json.workspace = true
1312
hex.workspace = true
1413
bcs.workspace = true
1514
itertools.workspace = true

crates/key-server/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ serde.workspace = true
1616
serde_json.workspace = true
1717
hex.workspace = true
1818
bcs.workspace = true
19-
clap.workspace = true
2019
tracing.workspace = true
2120
sui_types.workspace = true
21+
mysten-service.workspace = true
22+
sui_sdk.workspace = true
23+
shared_crypto.workspace = true
24+
2225

23-
mysten-service = { git = "https://github.com/mystenlabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "mysten-service" }
24-
sui_sdk = { git = "https://github.com/mystenlabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "sui-sdk"}
25-
shared_crypto = { git = "https://github.com/MystenLabs/sui", rev = "1f5fef23d09fb697fff9e83907c5871c08fb6c87", package = "shared-crypto" }
2626
tokio = { version = "1.44.2", features = ["full"] }
2727
axum = { version = "0.7", features = ["macros"] }
2828
tower = "0.4.13"

crates/key-server/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Metrics {
6565
checkpoint_timestamp_delay: register_histogram_with_registry!(
6666
"checkpoint_timestamp_delay",
6767
"Delay of timestamp of the latest checkpoint",
68-
default_external_call_duration_buckets(),
68+
buckets(50.0, 60000.0, 50.0),
6969
registry
7070
)
7171
.unwrap(),

0 commit comments

Comments
 (0)