Class InstrumentationLoader
java.lang.Object
io.opentelemetry.javaagent.tooling.instrumentation.InstrumentationLoader
- All Implemented Interfaces:
AgentExtension,io.opentelemetry.sdk.autoconfigure.spi.Ordered
@AutoService(AgentExtension.class)
public class InstrumentationLoader
extends Object
implements AgentExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.bytebuddy.agent.builder.AgentBuilderextend(net.bytebuddy.agent.builder.AgentBuilder agentBuilder, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) Extend the passedagentBuilderwith custom logic (e.g. instrumentation).Returns the name of the extension.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.autoconfigure.spi.Ordered
order
-
Constructor Details
-
InstrumentationLoader
public InstrumentationLoader()
-
-
Method Details
-
extend
public net.bytebuddy.agent.builder.AgentBuilder extend(net.bytebuddy.agent.builder.AgentBuilder agentBuilder, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) Description copied from interface:AgentExtensionExtend the passedagentBuilderwith custom logic (e.g. instrumentation).- Specified by:
extendin interfaceAgentExtension- Returns:
- The customized agent. Note that this method MUST return a non-null
AgentBuilderinstance that contains all customizations defined in this extension.
-
extensionName
Description copied from interface:AgentExtensionReturns the name of the extension. It does not have to be unique, but it should be human-readable: javaagent uses the extension name in its logs.- Specified by:
extensionNamein interfaceAgentExtension
-