Expand description
Middleware for logging HTTP request/response details at TRACE level.
Logs request method, URL, headers, request body, and response status and headers. All output is at TRACE level so it is silent unless the subscriber is configured to capture TRACE spans for this crate.
Each request is wrapped in an http_request span with a unique request_id,
making it easy to correlate request/response log lines when multiple requests
are in flight.
Sensitive headers (Authorization, Cookie, Set-Cookie, Proxy-Authorization)
are redacted in the log output.
ยงWarning
At TRACE level this will include request body payloads. Only enable TRACE logging in development environments.
Structsยง
- Reqwest
Tracing Middleware - Reqwest middleware that logs HTTP request and response details via
tracingat TRACE level.
Constantsยง
- MAX_
REQUEST_ ๐BODY_ LOG_ SIZE - REDACTED_
HEADERS ๐
Functionsยง
- is_
sensitive ๐