mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2025-08-11 06:16:57 +02:00
parent
68c112b290
commit
bab5e1fe51
@ -51,10 +51,10 @@ impl ReportableError for MysqlError {
|
|||||||
fn metric_label(&self) -> Option<String> {
|
fn metric_label(&self) -> Option<String> {
|
||||||
Some(
|
Some(
|
||||||
match self.kind {
|
match self.kind {
|
||||||
MysqlErrorKind::DieselQuery(_) => "diesel_query",
|
MysqlErrorKind::DieselQuery(_) => "storage.mysql.error.diesel_query",
|
||||||
MysqlErrorKind::DieselConnection(_) => "diesel_connection",
|
MysqlErrorKind::DieselConnection(_) => "storage.mysql.error.diesel_connection",
|
||||||
MysqlErrorKind::Pool(_) => "pool",
|
MysqlErrorKind::Pool(_) => "storage.mysql.error.pool",
|
||||||
MysqlErrorKind::Migration(_) => "migration",
|
MysqlErrorKind::Migration(_) => "storage.mysql.error.migration",
|
||||||
}
|
}
|
||||||
.to_string(),
|
.to_string(),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user