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

Clear cached sample_result in tracing::Span::set_parent() #152

Closed
wants to merge 1 commit into from

Conversation

edwinsmith
Copy link

@edwinsmith edwinsmith commented Jul 2, 2024

Motivation

Fixes #150

Solution

Clear cached OtelData.builder.sample_result in tracing::Span::set_parent()
so it is recomputed again after the parent changes.

TODO: needs a repro that we can turn into a test.

@edwinsmith edwinsmith changed the title candidate fix for issue 150 Clear cached sample_result in tracing::Span::set_parent() Jul 2, 2024
@djc
Copy link
Collaborator

djc commented Jul 3, 2024

Closing in favor of #153, thanks for the effort!

@djc djc closed this Jul 3, 2024
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.

Sampling decision cache isn't invalidated on span.set_parent
2 participants