Jax-rs async cancel handling
MODIFY
instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v2_0/JaxrsAsyncResponseInstrumentation.java
instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v2_0/JaxrsAsyncResponseInstrumentation.java
@@ -85,7 +85,7 @@ public class JaxrsAsyncResponseInstrumentation implements TypeInstrumentation {
@SuppressWarnings("unused")
public static class AsyncResponseCancelAdvice {
- @Advice.OnMethodExit(suppress = Throwable.class)
+ @Advice.OnMethodEnter(suppress = Throwable.class)
public static void stopSpan(@Advice.This AsyncResponse asyncResponse) {
VirtualField<AsyncResponse, AsyncResponseData> virtualField =

Jax-rs async cancel handling (#4279)