mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2025-08-07 04:16:56 +02:00
parent
68c112b290
commit
bab5e1fe51
@ -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(),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user