Class HandlerAdapterInstrumentation.ControllerAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.spring.webmvc.v6_0.HandlerAdapterInstrumentation.ControllerAdvice
Enclosing class:
HandlerAdapterInstrumentation

public static class HandlerAdapterInstrumentation.ControllerAdvice extends Object
  • Constructor Details

    • ControllerAdvice

      public ControllerAdvice()
  • Method Details

    • nameResourceAndStartSpan

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void nameResourceAndStartSpan(@Argument(0) jakarta.servlet.http.HttpServletRequest request, @Argument(2) Object handler, @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(@Argument(2) Object handler, @Thrown Throwable throwable, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)