Class ContextInstrumentation

java.lang.Object
io.opentelemetry.javaagent.instrumentation.opentelemetryapi.ContextInstrumentation
All Implemented Interfaces:
io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation

public class ContextInstrumentation extends Object implements io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation
Returns AgentContextStorage as the implementation of ContextStorage in the application classpath. We do this instead of using the normal service loader mechanism to make sure there is no dependency on a system property or possibility of a user overriding this since it's required for instrumentation in the agent to work properly.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    transform(io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer transformer)
     
    net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation

    classLoaderOptimization
  • Constructor Details

    • ContextInstrumentation

      public ContextInstrumentation()
  • Method Details

    • typeMatcher

      public net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> typeMatcher()
      Specified by:
      typeMatcher in interface io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation
    • transform

      public void transform(io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer transformer)
      Specified by:
      transform in interface io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation