Skip to content

Commit f07d03d

Browse files
committed
Support 'classpath' mode to be used when creating AOT caches
In this mode only the agent jar is added to the boot classpath, no services are started
1 parent f38cc2e commit f07d03d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ private static void agentmainImpl(
143143
}
144144

145145
final URL agentJarURL = installAgentJar(inst);
146+
if ("classpath".equalsIgnoreCase(agentArgs)) {
147+
return; // only augment the classpath, don't start any services
148+
}
146149
final Class<?> agentClass;
147150
try {
148151
agentClass = Class.forName("datadog.trace.bootstrap.Agent", true, null);

0 commit comments

Comments
 (0)