Skip to content

Commit bab5e1f

Browse files
authored
feat: namespace the db error labels (#1625)
Closes SYNC-4464
1 parent 68c112b commit bab5e1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syncserver-db-common/src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ impl ReportableError for MysqlError {
5151
fn metric_label(&self) -> Option<String> {
5252
Some(
5353
match self.kind {
54-
MysqlErrorKind::DieselQuery(_) => "diesel_query",
55-
MysqlErrorKind::DieselConnection(_) => "diesel_connection",
56-
MysqlErrorKind::Pool(_) => "pool",
57-
MysqlErrorKind::Migration(_) => "migration",
54+
MysqlErrorKind::DieselQuery(_) => "storage.mysql.error.diesel_query",
55+
MysqlErrorKind::DieselConnection(_) => "storage.mysql.error.diesel_connection",
56+
MysqlErrorKind::Pool(_) => "storage.mysql.error.pool",
57+
MysqlErrorKind::Migration(_) => "storage.mysql.error.migration",
5858
}
5959
.to_string(),
6060
)

0 commit comments

Comments
 (0)