WIP: opentelemetry-0.18 bump #490

Closed
jpds wants to merge 12 commits from jpds/garage:opentelemetry-0.18 into main
Showing only changes of commit 045b93bd11 - Show all commits

View file

@ -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(),
} }