-
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
TCK doesn't use returned instrumented ClientBuilder #157
Comments
…icroprofile#157 Signed-off-by: Patrik Dudits <[email protected]>
Why not clarify the javadoc then, as the implementation clearly operates on the builder passed into the method? |
+1 we should fix the javadoc. The intention was to configure the builder and also return the same instance to allow chaining builder calls. |
The reason I opt for actually using the result is, that not all context propagation can be done my means of JAX-RS api, and I had to resort to decoration of the builder and client to capture context of |
Any propagation that's required beyond that of the JAX-RS APIs, should be handled by MP Context Propagation. My preference would still be for updating the javadoc only |
Could you please paste here a code sample? And also what implementation are you using? The |
I am implementing Jersey-based tracing for Payara. We used decoration for capturing calling (main) thread context for async calls at builder level, but recently decided to minimize its impact. Therefore we moved the decoration into
But in parallel we'll be working towards direct support for context propagation within Jersey, that would work without any wrapping. |
…icroprofile#157 Signed-off-by: Patrik Dudits <[email protected]>
…icroprofile#157 Signed-off-by: Patrik Dudits <[email protected]>
…icroprofile#157 Signed-off-by: Patrik Dudits <[email protected]>
TestClientRegistrarWebServices doesn't use the client returned from
ClientTracingRegistrar
as instrumented client.The javadoc of
ClientTracingRegistrar
says "returns a ClientBuilder with enabled tracing integration.", therefore the test should not expect original builder to be fully instrumented.The text was updated successfully, but these errors were encountered: