-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RESTEasy Reactive: Opentracing has incorrect operation name & span is finished prior to aroundWriteTo #16106
Comments
Something like this seems to solve issue (2):
Issue is that I've had to add beans.xml so the provider is picked up. Not sure what the correct way would be to do this within Quarkus itself. |
Thanks for reporting! @Ladicek is this similar to what you were looking at? |
I don't think it's similar, no.
When it comes to finishing the span in As I describe above, we already have a significant difference in when the span is finished, based on the underlying JAX-RS implementation. If |
These assumptions do hold. See https://jakarta.ee/specifications/restful-ws/3.0/jakarta-restful-ws-spec-3.0.html#processing_pipeline |
That's nice. We could collapse all 3 span-finishing options into 1 :-) (Well, maybe we should keep using the servlet filter for JAX-RS on servlet. People may have additional servlet filters. But when running on Vert.x, it sounds like both classic RESTEasy and RESTEasy Reactive could use the writer interceptor.) |
Yeah, that sounds reasonable |
Hi guys, any luck on this one? |
I think this fell through the cracks. |
@geoand I've submitted a PR which resolves the span finishing too soon |
Git had an all-fall-down so I needed to recreate the branch and PR. Should be good to go now. If merged, can it be included in 2.0? |
Yeah, we can do that |
Only close the span after all writing has finished
I've tried to find the cause of the operation name being wrong. Any clues where to look? |
I don't know a whole about how OpenTracing has been integrated, so unfortunately I can't provide any pointers |
I investigated a bit and saw that by adding config: mp.opentracing.server.operation-name-provider=http-path Now the operation name uses the path which is actually better for me and is not impacted by whether its served by a sub resource or not |
Is this still an issue? |
Nope, can be closed due to the other PR's that have resolved these 2 issues. |
Thanks! |
Describe the bug
Opentracing behaves differently in 2 cases between standard RESTEasy and Reactive. In both cases standard RESTEasy seems to be correct:
Expected behavior
As above
Actual behavior
As above
To Reproduce
git clone https://github.com/bcluap/quarkus-examples.git
cd quarkus-examples/resteasy-reactive
mvn clean test
With resteasy reactive one will see two errors in the logs where the values are not as they should be in the span. Run with standard resteasy and the errors are not there as the spans are as expected.
Configuration
Nothing abnormal
Screenshots
Run the reproducer
Environment (please complete the following information):
1.12.2.Final
The text was updated successfully, but these errors were encountered: