Skip to content

Commit a09c289

Browse files
committed
disable some .NET features
1 parent 54f3755 commit a09c289

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/datadog_wrapper

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,17 @@ then
8686
export CORECLR_PROFILER="${CORECLR_PROFILER:-"{846F5F1C-F9AE-4B07-969E-05C26BC060D8}"}"
8787
export DD_DOTNET_TRACER_HOME="${DD_DOTNET_TRACER_HOME:-"/opt/datadog"}"
8888

89+
# Disable some .NET library features by default
90+
export DD_TRACE_STARTUP_LOGS="${DD_TRACE_STARTUP_LOGS:-"0"}" # we can't completely disable all logs to disk, but we can at least disable startup logs
91+
export DD_CIVISIBILITY_ENABLED="${DD_CIVISIBILITY_ENABLED:-"0"}" # disable CI Visibility's auto-detect mechanism
92+
8993
# log the environment variables for troubleshooting
9094
debug_log "CORECLR_PROFILER_PATH: $CORECLR_PROFILER_PATH"
9195
debug_log "CORECLR_ENABLE_PROFILING: $CORECLR_ENABLE_PROFILING"
9296
debug_log "CORECLR_PROFILER: $CORECLR_PROFILER"
9397
debug_log "DD_DOTNET_TRACER_HOME: $DD_DOTNET_TRACER_HOME"
98+
debug_log "DD_TRACE_STARTUP_LOGS: $DD_TRACE_STARTUP_LOGS"
99+
debug_log "DD_CIVISIBILITY_ENABLED: $DD_CIVISIBILITY_ENABLED"
94100
fi # .NET
95101

96102
# if it is java

0 commit comments

Comments
 (0)