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.OpenTelemetryAgent

The 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 Details

    • initialize

      public static void initialize(Instrumentation inst, File javaagentFile, boolean fromPremain) throws Exception
      Throws:
      Exception
    • delayedStartHook

      public static void delayedStartHook()
      Call to this method is inserted into sun.launcher.LauncherHelper.checkAndLoadMain().
    • getExtensionsClassLoader

      public static ClassLoader getExtensionsClassLoader()