Class TracerAwareInstrumentation

  • Direct Known Subclasses:
    TraceMethodInstrumentation

    public abstract class TracerAwareInstrumentation
    extends co.elastic.apm.agent.sdk.ElasticApmInstrumentation
    The constructor can optionally have a ElasticApmTracer parameter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Tracer tracer  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean indyPlugin()
      Deprecated.
      Overriding this method means not the instrumentation is not an indy plugin.
      • Methods inherited from class co.elastic.apm.agent.sdk.ElasticApmInstrumentation

        getAdviceClassName, getClassLoaderMatcher, getInstrumentationGroupNames, getMethodMatcher, getOffsetMapping, getProtectionDomainPostFilter, getTypeMatcher, getTypeMatcherPreFilter, includeWhenInstrumentationIsDisabled, onTypeMatch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tracer

        public static final Tracer tracer
    • Constructor Detail

      • TracerAwareInstrumentation

        public TracerAwareInstrumentation()
    • Method Detail

      • indyPlugin

        @Deprecated
        public boolean indyPlugin()
        Deprecated.
        Overriding this method means not the instrumentation is not an indy plugin. The usage of non-indy plugins is deprecated.
        Allows to opt-out of indy plugins. This is just to allow for a migration period where both indy and non-indy plugins are in use. Once all non-indy plugins are migrated this method will be removed.
        Returns:
        whether to load the classes of this plugin in dedicated plugin class loaders (one for each unique class loader) and dispatch to the advice via an INVOKEDYNAMIC instruction.