Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions crates/datadog-trace-agent/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pub struct Tags {
function_tags_string: OnceLock<String>,
}

impl Default for Tags {
fn default() -> Self {
Self::new()
}
}

impl Tags {
pub fn from_env_string(env_tags: &str) -> Self {
let mut tags = HashMap::new();
Expand Down
1 change: 1 addition & 0 deletions crates/datadog-trace-agent/src/mini_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ impl MiniAgent {
}
}

#[allow(clippy::too_many_arguments)]
async fn trace_endpoint_handler(
config: Arc<config::Config>,
req: hyper_migration::HttpRequest,
Expand Down
2 changes: 1 addition & 1 deletion crates/datadog-trace-agent/src/trace_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl TraceProcessor for ServerlessTraceProcessor {
// double check content length is < max request content length in case transfer encoding is used
if body_size > config.max_request_content_length {
return log_and_create_http_response(
&format!("Error processing traces: Payload too large"),
"Error processing traces: Payload too large",
StatusCode::PAYLOAD_TOO_LARGE,
);
}
Expand Down
Loading