aboutsummaryrefslogtreecommitdiff
path: root/src/db/metric_proxy.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-08-17 13:16:55 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-08-17 13:16:55 +0200
commit306a74379a7b5e56699ac6cdd98ae2c6e98efc0d (patch)
tree7f3344f312567ef11bfebacab47bd3e1c2189110 /src/db/metric_proxy.rs
parent14163b5853aea4357f4e17bb341ccd50ba3c89f1 (diff)
downloadgarage-306a74379a7b5e56699ac6cdd98ae2c6e98efc0d.tar.gz
garage-306a74379a7b5e56699ac6cdd98ae2c6e98efc0d.zip
add metrics to workers
Diffstat (limited to 'src/db/metric_proxy.rs')
-rw-r--r--src/db/metric_proxy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/metric_proxy.rs b/src/db/metric_proxy.rs
index d246e7fe..e5221a7f 100644
--- a/src/db/metric_proxy.rs
+++ b/src/db/metric_proxy.rs
@@ -9,7 +9,7 @@ use crate::{
};
use opentelemetry::{
global,
- metrics::{Counter, Unit, ValueRecorder},
+ metrics::{Unit, ValueRecorder},
KeyValue,
};
@@ -21,7 +21,7 @@ pub struct MetricDbProxy {
impl MetricDbProxy {
pub fn init(db: LmdbDb) -> Db {
- let meter = global::meter("garage/web");
+ let meter = global::meter("garage/db");
let s = Self {
db,
op: meter