Class ExposeAgentBootstrapListener

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
io.opentelemetry.javaagent.tooling.ExposeAgentBootstrapListener
All Implemented Interfaces:
net.bytebuddy.agent.builder.AgentBuilder.Listener

public class ExposeAgentBootstrapListener extends net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
Ensures that transformed classes can read agent classes in bootstrap class loader and injected classes in unnamed module of their class loader.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Listener

    net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter, net.bytebuddy.agent.builder.AgentBuilder.Listener.Compound, net.bytebuddy.agent.builder.AgentBuilder.Listener.Filtering, net.bytebuddy.agent.builder.AgentBuilder.Listener.ModuleReadEdgeCompleting, net.bytebuddy.agent.builder.AgentBuilder.Listener.NoOp, net.bytebuddy.agent.builder.AgentBuilder.Listener.StreamWriting, net.bytebuddy.agent.builder.AgentBuilder.Listener.WithErrorsOnly, net.bytebuddy.agent.builder.AgentBuilder.Listener.WithTransformationsOnly
  • Field Summary

    Fields inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Listener

    LOADED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onTransformation(net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, boolean b, net.bytebuddy.dynamic.DynamicType dynamicType)
     

    Methods inherited from class net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter

    onComplete, onDiscovery, onError, onIgnored

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExposeAgentBootstrapListener

      public ExposeAgentBootstrapListener(Instrumentation instrumentation)
  • Method Details

    • onTransformation

      public void onTransformation(net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, boolean b, net.bytebuddy.dynamic.DynamicType dynamicType)
      Specified by:
      onTransformation in interface net.bytebuddy.agent.builder.AgentBuilder.Listener
      Overrides:
      onTransformation in class net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter