Shorten jar names (prefixes of runtime classnames) (DataDog/dd-trace-java#1592)
MODIFY
agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/Agent.java
agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/Agent.java
@@ -148,8 +148,7 @@ public class Agent {
private static synchronized void startAgent(final Instrumentation inst, final URL bootstrapURL) {
if (AGENT_CLASSLOADER == null) {
try {
- final ClassLoader agentClassLoader =
- createAgentClassLoader("auto-tooling-and-instrumentation.isolated", bootstrapURL);
+ final ClassLoader agentClassLoader = createAgentClassLoader("inst", bootstrapURL);
final Class<?> agentInstallerClass =
agentClassLoader.loadClass("io.opentelemetry.auto.tooling.AgentInstaller");
final Method agentInstallerMethod =

MODIFY
opentelemetry-javaagent/opentelemetry-javaagent.gradle
opentelemetry-javaagent/opentelemetry-javaagent.gradle
@@ -29,7 +29,8 @@ jar {
CopySpec isolateSpec(Collection<Task> sourceTasks) {
return copySpec {
from(sourceTasks.collect { zipTree(it.archiveFile) }) {
- into 'auto-tooling-and-instrumentation.isolated'
+ // important to keep prefix 'inst' short, as it is prefixed to lots of strings in runtime mem
+ into 'inst'
rename '(^.*)\\.class$', '$1.classdata'
// Rename LICENSE file since it clashes with license dir on non-case sensitive FSs (i.e. Mac)
rename '^LICENSE$', 'LICENSE.renamed'

Shorten jar names (prefixes of runtime classnames) (DataDog/dd-trace-java#1592)