Class AgentInitializer
- java.lang.Object
-
- io.opentelemetry.javaagent.bootstrap.AgentInitializer
-
public final class AgentInitializer extends Object
Agent start up logic.This class is loaded and called by
io.opentelemetry.javaagent.OpenTelemetryAgentThe intention is for this class to be loaded by bootstrap classloader to make sure we have unimpeded access to the rest of agent parts.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoadergetAgentClassLoader()static voidinitialize(Instrumentation inst, File javaagentFile)static booleanisJavaBefore9()
-
-
-
Method Detail
-
initialize
public static void initialize(Instrumentation inst, File javaagentFile) throws Exception
- Throws:
Exception
-
getAgentClassLoader
public static ClassLoader getAgentClassLoader()
-
isJavaBefore9
public static boolean isJavaBefore9()
-
-