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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.bytebuddy.agent.builder.AgentBuilder
    extend(net.bytebuddy.agent.builder.AgentBuilder agentBuilder, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config)
    Extend the passed agentBuilder with 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, wait

    Methods 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: AgentExtension
      Extend the passed agentBuilder with custom logic (e.g. instrumentation).
      Specified by:
      extend in interface AgentExtension
      Returns:
      The customized agent. Note that this method MUST return a non-null AgentBuilder instance that contains all customizations defined in this extension.
    • extensionName

      public String extensionName()
      Description copied from interface: AgentExtension
      Returns 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:
      extensionName in interface AgentExtension