Package io.opentelemetry.contrib.attach
Class RuntimeAttach
java.lang.Object
io.opentelemetry.contrib.attach.RuntimeAttach
This class allows you to attach the OpenTelemetry Java agent at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidAttach the OpenTelemetry Java agent to the current JVM.
-
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.
-