feat: namespace the db error labels (#1625)

Closes SYNC-4464
This commit is contained in:
Philip Jenvey 2024-10-30 13:44:17 -07:00 committed by GitHub
parent 68c112b290
commit bab5e1fe51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,10 +51,10 @@ impl ReportableError for MysqlError {
fn metric_label(&self) -> Option<String> {
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(),
)