Skip to main content

error_mapping_middleware

Function error_mapping_middleware 

Source
pub async fn error_mapping_middleware(request: Request, next: Next) -> Response
Expand description

Passthrough middleware kept for backwards compatibility with the api-gateway layer stack. The real work (logging diagnostic(), filling trace_id / instance) is now done by canonical_error_middleware.