Skip to content
Open
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
5 changes: 5 additions & 0 deletions scripts/datadog_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ fi

debug_log "The runtime is $AWS_EXECUTION_ENV"

# Disable DD_TRACE_STATS_COMPUTATION_ENABLED by default for Java and .NET runtimes
export DD_TRACE_STATS_COMPUTATION_ENABLED="${DD_TRACE_STATS_COMPUTATION_ENABLED:-false}"
Comment on lines +47 to +48
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says this default is for Java and .NET runtimes, but the export is applied unconditionally (i.e., for any runtime that uses this wrapper). Either update the comment to reflect that it’s set globally, or move the export into the Java/.NET runtime branches so the behavior matches the comment.

Copilot uses AI. Check for mistakes.

debug_log "DD_TRACE_STATS_COMPUTATION_ENABLED: $DD_TRACE_STATS_COMPUTATION_ENABLED"

# if it is .NET
if [[ "$AWS_EXECUTION_ENV" == *"dotnet"* ]]
then
Expand Down
Loading