From 045b93bd11d0756272f86767d037e8b99c59c2d6 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Sun, 22 Jan 2023 23:46:26 +0000 Subject: [PATCH] rpc/metrics.rs: ValueRecorder -> Histogram. --- src/rpc/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/metrics.rs b/src/rpc/metrics.rs index 61f8fa79..74425fbe 100644 --- a/src/rpc/metrics.rs +++ b/src/rpc/metrics.rs @@ -7,7 +7,7 @@ pub struct RpcMetrics { pub(crate) rpc_netapp_error_counter: Counter, pub(crate) rpc_garage_error_counter: Counter, - pub(crate) rpc_duration: ValueRecorder, + pub(crate) rpc_duration: Histogram, } impl RpcMetrics { pub fn new() -> Self { @@ -30,7 +30,7 @@ impl RpcMetrics { .with_description("Number of RPC errors (errors happening when handling the RPC)") .init(), rpc_duration: meter - .f64_value_recorder("rpc.duration") + .f64_histogram("rpc.duration") .with_description("Duration of RPCs") .init(), }