-
Notifications
You must be signed in to change notification settings - Fork 867
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
Propagate client span context in doOnRequest #6621
Propagate client span context in doOnRequest #6621
Conversation
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.
thx @jamesmartinpp!
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.
jaxrs and http client request spans are siblings instead of parent/child
@jamesmartinpp which jaxrs library/version and which http client library/version is this? we may be able to update the related jaxrs client test to include the http client instrumentation to provide test coverage for this
The client is reactor-netty and the jaxrs framework is Resteasy. |
@jamesmartinpp what versions of reactory-netty and resteasy? |
I thought I understood this, but I'm not able to repro it, is this a jaxrs CLIENT span or a jaxrs INTERNAL span? could you include a bit more detail how to reproduce the issue? thx! |
reactor-netty v1.0.17 |
I believe this is a jaxrs CLIENT span. I'm pretty sure the relationship to the jaxrs service span is correct. I will check MIke's notes and get back to you. |
Sorry, I was wrong. Prior to this change we are propagating the upstream service's jax-rs request spanid as the parent. So the downstream jaxrs request will use the upstream server's spanId as its parent. Making this change will propagate the http get spanId instead. So before this change:
|
Just to make things a bit more clear: you're using a custom propagation method and you need |
Yes, that appears to be correct. Please let me know if this is a problem. |
.../io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpClientInstrumentation.java
Show resolved
Hide resolved
@jamesmartinpp makes sense, thx |
…ent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpClientInstrumentation.java comment added to explain the change. Co-authored-by: Trask Stalnaker <[email protected]>
Copying the changes from Mike W. This fixes the problem where the jaxrs and http client request spans are siblings instead of parent/child. @mateuszrzeszutek please review Co-authored-by: Trask Stalnaker <[email protected]>
Copying the changes from Mike W. This fixes the problem where the jaxrs and http client request spans are siblings instead of parent/child. @mateuszrzeszutek please review Co-authored-by: Trask Stalnaker <[email protected]>
Copying the changes from Mike W. This fixes the problem where the jaxrs and http client request spans are siblings instead of parent/child. @mateuszrzeszutek please review Co-authored-by: Trask Stalnaker <[email protected]>
Copying the changes from Mike W. This fixes the problem where the jaxrs and http client request spans are siblings instead of parent/child.
@mateuszrzeszutek please review