WIP: opentelemetry-0.18 bump #490
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ pub struct RpcMetrics {
|
||||||
pub(crate) rpc_netapp_error_counter: Counter<u64>,
|
pub(crate) rpc_netapp_error_counter: Counter<u64>,
|
||||||
pub(crate) rpc_garage_error_counter: Counter<u64>,
|
pub(crate) rpc_garage_error_counter: Counter<u64>,
|
||||||
|
|
||||||
pub(crate) rpc_duration: ValueRecorder<f64>,
|
pub(crate) rpc_duration: Histogram<f64>,
|
||||||
}
|
}
|
||||||
impl RpcMetrics {
|
impl RpcMetrics {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
@ -30,7 +30,7 @@ impl RpcMetrics {
|
||||||
.with_description("Number of RPC errors (errors happening when handling the RPC)")
|
.with_description("Number of RPC errors (errors happening when handling the RPC)")
|
||||||
.init(),
|
.init(),
|
||||||
rpc_duration: meter
|
rpc_duration: meter
|
||||||
.f64_value_recorder("rpc.duration")
|
.f64_histogram("rpc.duration")
|
||||||
.with_description("Duration of RPCs")
|
.with_description("Duration of RPCs")
|
||||||
.init(),
|
.init(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue