MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / log_response

Function log_response

crates/openshell-server/src/multiplex.rs:85–91  ·  view source on GitHub ↗

Log response status and latency within the request span.

(res: &Response<B>, latency: Duration, _span: &Span)

Source from the content-addressed store, hash-verified

83
84/// Log response status and latency within the request span.
85fn 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///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected