Skip to content

Commit f9564a7

Browse files
committed
Rename DD_AOT_TRAINING to DD_DETECT_AOT_TRAINING
1 parent b79d752 commit f9564a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ private static boolean isAotTraining(String agentArgs, Instrumentation inst) {
436436
return false; // agent doesn't support training mode before Java 25
437437
} else if ("aot_training".equalsIgnoreCase(agentArgs)) {
438438
return true; // training mode explicitly enabled via -javaagent
439-
} else if ("false".equalsIgnoreCase(EnvironmentVariables.get("DD_AOT_TRAINING"))) {
440-
return false; // training mode explicitly disabled via DD_AOT_TRAINING=false
439+
} else if ("false".equalsIgnoreCase(EnvironmentVariables.get("DD_DETECT_AOT_TRAINING"))) {
440+
return false; // detection of training mode disabled via DD_DETECT_AOT_TRAINING=false
441441
} else {
442442
return AdvancedAgentChecks.isAotTraining(inst); // check JVM status
443443
}

metadata/supported-configurations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"aliases": []
106106
}
107107
],
108-
"DD_AOT_TRAINING": [
108+
"DD_DETECT_AOT_TRAINING": [
109109
{
110110
"version": "A",
111111
"type": "boolean",

0 commit comments

Comments
 (0)