Skip to content

Commit fa08696

Browse files
committed
fix
1 parent 2e9b812 commit fa08696

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ private String mapResultClass(String reasonCode) {
148148

149149
switch (reasonCode) {
150150
case "already_initialized":
151-
case "other-java-agents":
152151
return "already_instrumented";
152+
case "other-java-agents":
153+
return "incorrect_installation";
153154
case "jdk_tool":
154155
return "unsupported_binary";
155156
default:

dd-java-agent/src/test/groovy/datadog/trace/bootstrap/BootstrapInitializationTelemetryTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class BootstrapInitializationTelemetryTest extends Specification {
6565
reasonCode | resultClass
6666
"jdk_tool" | "unsupported_binary"
6767
"already_initialized" | "already_instrumented"
68-
"other-java-agents" | "already_instrumented"
68+
"other-java-agents" | "incorrect_installation"
6969
"foo" | "unknown"
7070
}
7171

0 commit comments

Comments
 (0)