Skip to content

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.

@paulbakker paulbakker force-pushed the improved-default-span-namer branch from 4d52540 to cfc183a Compare November 24, 2022 18:40
@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.

3 participants