Class TraceMethodInstrumentation

    • Field Detail

      • traceMethodThresholdMicros

        public static long traceMethodThresholdMicros
    • Method Detail

      • onMethodEnter

        @OnMethodEnter(suppress=java.lang.Throwable.class)
        public static void onMethodEnter​(@Origin
                                         java.lang.Class<?> clazz,
                                         java.lang.String signature,
                                         @Local("span")
                                         AbstractSpan<?> span)
      • onMethodExit

        @OnMethodExit(suppress=java.lang.Throwable.class,
                      onThrowable=java.lang.Throwable.class)
        public static void onMethodExit​(@Local("span") @Nullable
                                        AbstractSpan<?> span,
                                        @Thrown @Nullable
                                        java.lang.Throwable t)
      • getTypeMatcher

        public net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.type.TypeDescription> getTypeMatcher()
        Specified by:
        getTypeMatcher in class co.elastic.apm.agent.sdk.ElasticApmInstrumentation
      • getMethodMatcher

        public net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> getMethodMatcher()
        Specified by:
        getMethodMatcher in class co.elastic.apm.agent.sdk.ElasticApmInstrumentation
      • getInstrumentationGroupNames

        public java.util.Collection<java.lang.String> getInstrumentationGroupNames()
        Specified by:
        getInstrumentationGroupNames in class co.elastic.apm.agent.sdk.ElasticApmInstrumentation
      • indyPlugin

        public boolean indyPlugin()
        Description copied from class: TracerAwareInstrumentation
        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.
        Overrides:
        indyPlugin in class TracerAwareInstrumentation
        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.