-
Notifications
You must be signed in to change notification settings - Fork 783
ClassCastException with webClient #1442
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
Comments
Hi can you provide the full stacktrace please? |
Yes, sorry.
|
Hey @bsideup @smaldini. I see that it might be related to https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/client/TraceWebClientBeanPostProcessor.java#L374-L385 . @smaldini a couple of months ago you did "a grand refactoring" of Sleuth and added the What was the reason for that? Also it seems that with the latest release some things must have changed in the Reactor version (or I messed up sth in Sleuth) cause there's an apparent breakage in compatibility. |
This is important for our org. We've been eager for #1393 but can't take 2.1.3.RELEASE because of this regression. |
With sleuth 2.1.3, when webClient is instrumented by sleuth, there is a ClassCastException.
I have a project that reproduces the error: https://github.com/oburgosm/test-sleuth-webclient
Error in this project is:
If I set spring.sleuth.web.client.enabled the error doesn't occur
The problem doesn't occur with sleuth 2.1.2,
The text was updated successfully, but these errors were encountered: