fix: blocking read timer lack of parameter (#2954)

This commit is contained in:
Wei
2023-12-19 14:16:55 +08:00
committed by GitHub
parent ccbd49777d
commit 3e6a564f8e

View File

@@ -319,7 +319,7 @@ impl<A: Accessor> LayeredAccessor for PrometheusAccessor<A> {
.inc();
let timer = REQUESTS_DURATION_SECONDS
.with_label_values(&[&self.scheme])
.with_label_values(&[&self.scheme, Operation::BlockingRead.into_static()])
.start_timer();
let result = self.inner.blocking_read(path, args).map(|(rp, r)| {
(