add metrics to workers

This commit is contained in:
Quentin Dufour
2024-08-17 13:16:55 +02:00
parent 14163b5853
commit 306a74379a
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -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