Class AgentInstaller
java.lang.Object
io.opentelemetry.javaagent.tooling.AgentInstaller
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinstallBytebuddyAgent(Instrumentation inst, ClassLoader extensionClassLoader, EarlyInitAgentConfig earlyConfig) static voidregisterClassLoadCallback(String className, Runnable callback) Register a callback to run when a class is loading.
-
Method Details
-
installBytebuddyAgent
public static void installBytebuddyAgent(Instrumentation inst, ClassLoader extensionClassLoader, EarlyInitAgentConfig earlyConfig) -
registerClassLoadCallback
Register a callback to run when a class is loading.Caveats:
- This callback will be invoked by a jvm class transformer.
- Classes filtered out by
AgentInstaller's skip list will not be matched.
- Parameters:
className- name of the class to match againstcallback- runnable to invoke when class name matches
-