Skip to content
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

Prefer WebClient to RestTemplate when creating the Zipkin Sender #32529

Conversation

marcingrzejszczak
Copy link
Contributor

@marcingrzejszczak marcingrzejszczak commented Sep 28, 2022

without this change we're registering WebClient sender only for webflux applications and we fallback to a RestTemplate sender in all the other cases

with this change we're always trying to register a WebClient sender and fallback to RestTemplate only when WebClient is not on the classpath

without this change we're registering WebClient sender only for webflux applications and we fallback to a RestTemplate sender in all the other cases

with this change we're always trying to register a WebClient sender and fallback to RestTemplate only when WebClient is not on the classpath
@wilkinsona wilkinsona changed the title Http client zipkin order change Prefer WebClient to RestTemplate when creating the Zipkin Sender Sep 28, 2022
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 28, 2022
@wilkinsona wilkinsona added this to the 3.0.0-RC1 milestone Sep 28, 2022
@wilkinsona wilkinsona self-assigned this Sep 28, 2022
wilkinsona pushed a commit that referenced this pull request Sep 28, 2022
Previously, a Webclient-based sender was only for reactive web
applications, falling back to a RestTemplate-based sender in all
other cases.

With this commit we now prefer to use WebClient if it is available,
irrespective of the web application type. The assumption is that
if the user has WebClient on the classpath, it's either a reactive
web application, or it's a servlet web application or non-web
application but WebClient is preferred.

See gh-32529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants