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

feat: change the sampler's signature for better decisions #6

Merged
merged 5 commits into from
Jul 4, 2024

Conversation

maraisr
Copy link
Owner

@maraisr maraisr commented Jul 2, 2024

Previously we provided only the parent ID to the sampler, which had returned the sampling state for the new span before creation. But that did not allow any sampling decision to be made with respect to current/new span ID.

I then 360'd, and made it so one could not make sampling decisions based off its parent, and mixed with a bug in tctx (fixed in maraisr/tctx@8ec6b3e) it was impossible to sample an entire trace, than individual spans, without hacks. Whoops!

This PR introduces a change our samplers signature, and provides it with more context to make more educated decisions.

closes: #5

@maraisr maraisr merged commit d8b82bd into main Jul 4, 2024
3 checks passed
@maraisr maraisr deleted the better-sampler branch July 4, 2024 02:10
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.

Random head-sampling broken
1 participant