Log response status and latency within the request span.
(res: &Response<B>, latency: Duration, _span: &Span)
| 83 | |
| 84 | /// Log response status and latency within the request span. |
| 85 | fn log_response<B>(res: &Response<B>, latency: Duration, _span: &Span) { |
| 86 | tracing::info!( |
| 87 | status = res.status().as_u16(), |
| 88 | latency_ms = latency.as_millis(), |
| 89 | "response" |
| 90 | ); |
| 91 | } |
| 92 | |
| 93 | /// Wrap a service with the standard request-ID middleware stack. |
| 94 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected