Skip to content

Commit 3453e65

Browse files
Disable debugger by default if CI Visibility is enabled (#8506)
1 parent 9966995 commit 3453e65

File tree

1 file changed

+8
-0
lines changed
  • dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap

1 file changed

+8
-0
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/Agent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,14 @@ && isExplicitlyDisabled(TraceInstrumentationConfig.CODE_ORIGIN_FOR_SPANS_ENABLED
11211121
&& isExplicitlyDisabled(DebuggerConfig.DISTRIBUTED_DEBUGGER_ENABLED)) {
11221122
return;
11231123
}
1124+
if (ciVisibilityEnabled
1125+
&& !dynamicInstrumentationEnabled
1126+
&& !exceptionReplayEnabled
1127+
&& !codeOriginEnabled
1128+
&& !distributedDebuggerEnabled) {
1129+
// if CI Visibility is enabled, debugger should be disabled by default
1130+
return;
1131+
}
11241132
if (!remoteConfigEnabled) {
11251133
log.warn("Cannot enable Dynamic Instrumentation because Remote Configuration is not enabled");
11261134
return;

0 commit comments

Comments
 (0)