com.instana.agent.javaagent.InstanaStartupAgent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instana-javaagent Show documentation
Show all versions of instana-javaagent Show documentation
Javaagent to initialize JVM attach and instrument features.
The newest version!
package com.instana.agent.javaagent;
import java.lang.instrument.Instrumentation;
/**
* A Java agent that only ensures that a dynamically attached agent can retransform classes on J9 and ensures the
* Instrumentation API is loaded.
*/
public class InstanaStartupAgent {
public static void premain(String argument, Instrumentation instrumentation) {
if (instrumentation.getAllLoadedClasses().length == 0) {
System.err.println("Instana Agent could not initialize Instrumenation API");
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy