diff --git a/router/src/server.rs b/router/src/server.rs index 41b59665..ef543730 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -2541,6 +2541,7 @@ pub struct APIError { #[derive(serde::Serialize)] pub struct ErrorEvent { error: APIError, + error_type: String, } impl ErrorEvent { @@ -2550,6 +2551,7 @@ impl ErrorEvent { message: err.to_string(), http_status_code, }, + error_type: err.error_type().to_string(), } } }