Hello,
We occasionally see the following error in our logs:
DD_EXTENSION | ERROR | TRACE_AGENT | handle_traces | Error extracting request body: Failed to buffer the request body: error reading a body from connection
A similar issue was reported in #1000 (for handle_proxy), which got addressed with #1046.
The explanation from #1000 (comment) makes sense to us, so looking at the source code we see a similar pattern for handle_traces, which might have the same root cause:
|
let (parts, body) = match extract_request_body(request).await { |
|
Ok(r) => r, |
|
Err(e) => { |
|
return error_response( |
If it helps, we are currently using v94, though the above error_response is the same for v97 and the runtime is al2023 (for Go).
Hello,
We occasionally see the following error in our logs:
A similar issue was reported in #1000 (for
handle_proxy), which got addressed with #1046.The explanation from #1000 (comment) makes sense to us, so looking at the source code we see a similar pattern for
handle_traces, which might have the same root cause:datadog-lambda-extension/bottlecap/src/traces/trace_agent.rs
Lines 479 to 482 in ec644b4
If it helps, we are currently using v94, though the above
error_responseis the same for v97 and the runtime is al2023 (for Go).