Class HandlerAdapterInstrumentation.ControllerAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.spring.webmvc.v6_0.HandlerAdapterInstrumentation.ControllerAdvice
- Enclosing class:
- HandlerAdapterInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnameResourceAndStartSpan(jakarta.servlet.http.HttpServletRequest request, Object handler, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidstopSpan(Object handler, Throwable throwable, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
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)
-