Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions bottlecap/src/traces/trace_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,12 @@ impl TraceAgent {
) -> Response {
let (parts, body) = match extract_request_body(request).await {
Ok(r) => r,
Err(e) => return error_response(StatusCode::INTERNAL_SERVER_ERROR, e),
Err(e) => {
return error_response(
StatusCode::INTERNAL_SERVER_ERROR,
format!("TRACE_AGENT | handle_traces | Error extracting request body: {e}"),
);
}
};

if let Some(content_length) = parts
Expand Down Expand Up @@ -551,7 +556,12 @@ impl TraceAgent {
debug!("TRACE_AGENT | Proxied request for {context}");
let (parts, body) = match extract_request_body(request).await {
Ok(r) => r,
Err(e) => return error_response(StatusCode::INTERNAL_SERVER_ERROR, e),
Err(e) => {
return error_response(
StatusCode::INTERNAL_SERVER_ERROR,
format!("TRACE_AGENT | handle_proxy | Error extracting request body: {e}"),
);
}
};

let target_url = format!("https://{}.{}{}", backend_domain, config.site, backend_path);
Expand Down
Loading