From bab5e1fe51ef13fb36810cde93347d61372ae57c Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Wed, 30 Oct 2024 13:44:17 -0700 Subject: [PATCH] feat: namespace the db error labels (#1625) Closes SYNC-4464 --- syncserver-db-common/src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syncserver-db-common/src/error.rs b/syncserver-db-common/src/error.rs index b3fd78e4..42ed4473 100644 --- a/syncserver-db-common/src/error.rs +++ b/syncserver-db-common/src/error.rs @@ -51,10 +51,10 @@ impl ReportableError for MysqlError { fn metric_label(&self) -> Option { Some( match self.kind { - MysqlErrorKind::DieselQuery(_) => "diesel_query", - MysqlErrorKind::DieselConnection(_) => "diesel_connection", - MysqlErrorKind::Pool(_) => "pool", - MysqlErrorKind::Migration(_) => "migration", + MysqlErrorKind::DieselQuery(_) => "storage.mysql.error.diesel_query", + MysqlErrorKind::DieselConnection(_) => "storage.mysql.error.diesel_connection", + MysqlErrorKind::Pool(_) => "storage.mysql.error.pool", + MysqlErrorKind::Migration(_) => "storage.mysql.error.migration", } .to_string(), )