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

Use ClassValue instead of WeakMap to cache span name #2491

Merged
merged 2 commits into from Mar 4, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Mar 4, 2021

As values stored in WeakMap may reference the key used (key is class, value may contain method of the same class which has a reference to class) it does not serve intended purpose.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As values stored in WeakMap may reference the key used (key is class, value may contain method of the same class which has a reference to class) it does not serve intended purpose.

😱 💯

@trask trask merged commit 9c55d36 into open-telemetry:main Mar 4, 2021
@laurit laurit deleted the jaxrs-classvalue branch August 24, 2021 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants