Class Tomcat10ServerHandlerAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.tomcat.v10_0.Tomcat10ServerHandlerAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(org.apache.coyote.Request request, org.apache.coyote.Response response, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidstopSpan(org.apache.coyote.Request request, org.apache.coyote.Response response, Throwable throwable, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
Constructor Details
-
Tomcat10ServerHandlerAdvice
public Tomcat10ServerHandlerAdvice()
-
-
Method Details
-
onEnter
@OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Argument(0) org.apache.coyote.Request request, @Argument(1) org.apache.coyote.Response response, @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(0) org.apache.coyote.Request request, @Argument(1) org.apache.coyote.Response response, @Thrown Throwable throwable, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
-