You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of passing the whole Request into the spawned task and calling
extract_request_body (which consumes the request and early-returns on
failure), the fix:
1. Splits the request upfront with request.into_parts() — headers are
preserved regardless of body extraction outcome
2. Attempts body buffering via Bytes::from_request
3. Falls back to Bytes::new() on failure (e.g. oversized payload) with a
warn! log
4. Always calls universal_instrumentation_end — trace context, span
finalization, and status code extraction proceed with degraded (empty)
payload rather than being silently
dropped
The FromRequest import was added to the module-level axum imports to
support calling Bytes::from_request directly.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments