-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix integration with jersey-client 2.30 #2071
Fix integration with jersey-client 2.30 #2071
Conversation
.../main/java/io/opentelemetry/javaagent/instrumentation/jaxrsclient/v2_0/JerseyClientUtil.java
Outdated
Show resolved
Hide resolved
return future; | ||
} | ||
|
||
public static void handleException(ClientRequest context, Throwable exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally add instrumentation-specific handling to the *Tracer
classes themselves instead of separating utils, would that work here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracer class is in a different module jaxrs-client-2.0-common
adding these methods there would also require moving WrappedFuture
there. Adding a tracer to jaxrs-client-2.0-jersey-2.0
also doesn't seem like a good option because this module doesn't really have any specialised tracing code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One suggestion below, in addition to @anuraaga's suggestion.
.../jaxrs-client-2.0/jaxrs-client-2.0-common/javaagent/jaxrs-client-2.0-common-javaagent.gradle
Outdated
Show resolved
Hide resolved
…-common/javaagent/jaxrs-client-2.0-common-javaagent.gradle Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Fixes #2031
We can't use WrappedFuture on jersey-client 2.30 as jersey-client attempts to cast it to CompletableFuture.