-
Notifications
You must be signed in to change notification settings - Fork 47
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
JAX-RS filters not taken into account #187
Comments
I agree with @pilhuhn . The MP OpenTracing specification actually states that:
This looks good at first sight. So it raises following questions:
My proposal to fix this little "gap" would be to define an "outer Request Span" as the parent of the "JAX-RS resource method Span" already defined by the spec. This "outer Request Span" starts once the application receives the incoming request and finishes when the request completes. It would look like:
The "outer Request Span" operation name could simply be At first sight this could be weird to define same tags on those two Spans but for example HTTP_URL read when All this tracing could be disabled using existing config WDYT ? |
thanks for looping in @NicoNes. Is my understanding correct that the prematch filters are just normal Another possible solution is to start the span in the prematch and override the name/attributes in the inner layer. |
Yes that's right
Actually your solution is better than mine and works fine. So the only things that need to be changed in the spec are:
Thanks |
Hey @pavolloffay , Any chance to get the next version of the spec updated to take this into account ? Thanks |
@NicoNes we may not do any active development on this spec as the future is on OpenTelemetry, which superceded Open Tracing. |
@Emily-Jiang it makes sense. Thanks ! |
@NicoNes if you would like to get involved in the new initive of OpenTelemetry, please let me know. We are in the process of getting a prototype. |
@Emily-Jiang Yes it would be great. Thanks |
When I have a Jax-RS
ContainerRequestFilter
(whichis a pre-match filter), it may be executed before the incoming call hits my JAX-RS endpoint.So basically my "outer span" is the one of the JAX-RS endpoint method, where in reality the filter(s) should be taken into account as well, as they may already burn a lot of time of an incoming request.
Likewise outgoing response filters need to be taken into account as well.
The text was updated successfully, but these errors were encountered: