Class RuntimeAttach

java.lang.Object
io.opentelemetry.contrib.attach.RuntimeAttach

public final class RuntimeAttach extends Object
This class allows you to attach the OpenTelemetry Java agent at runtime.
  • Method Details

    • attachJavaagentToCurrentJVM

      public static void attachJavaagentToCurrentJVM()
      Attach the OpenTelemetry Java agent to the current JVM. The attachment must be requested at the beginning of the main method.