Class ExternalAnnotationInstrumentation.ExternalAnnotationAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.extannotations.ExternalAnnotationInstrumentation.ExternalAnnotationAdvice
Enclosing class:
ExternalAnnotationInstrumentation

public static class ExternalAnnotationInstrumentation.ExternalAnnotationAdvice extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onEnter(Class<?> declaringClass, String methodName, io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
     
    static void
    stopSpan(io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope, Throwable throwable)
     

    Methods inherited from class java.lang.Object

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

    • ExternalAnnotationAdvice

      public ExternalAnnotationAdvice()
  • Method Details

    • onEnter

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Origin("#t") Class<?> declaringClass, @Origin("#m") String methodName, @Local("otelRequest") io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
    • stopSpan

      @OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void stopSpan(@Local("otelRequest") io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope, @Thrown Throwable throwable)