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

Improved DefaultSpanNamer #2234

Merged

Conversation

paulbakker
Copy link
Contributor

Improved DefaultSpanNamer. It now more efficiently checks if the delegate has a default toString.

Previously it would actually call the toString and compare the value of the String. This is expensive as it creates more garbage.

@marcingrzejszczak marcingrzejszczak merged commit 0c481bf into spring-cloud:3.1.x Nov 29, 2022
marcingrzejszczak added a commit that referenced this pull request Dec 16, 2022
this has caused issues in async spans and runnables where the toString didn't come from Object but was a default from classes such as e.g. FutureTask

related issue #2234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants