-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix(tracing): sample rate not working #10485
Conversation
Though still in doubt about the correctness of the algorithm (another doc is here), I fixed the original sampling implementation and added a test to examine the precision. |
6df4d03
to
cacdb05
Compare
4cb601c
to
6ec86f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not expert in tracing, but I don't see issues here.
I have reviewed this code and it is consistent with the description provided by probability-sampler-algorithm. The logic is correct and I believe it will work well. |
c8ac985
to
521bbb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me. An adjustment is required in a test parameter otherwise I think it'll be flaky. Changelog conflicts should be resolved too.
521bbb5
to
f2ec795
Compare
Please cherry-pick this to EE. |
ping @StarlightIbuki |
PR created. |
Full change log
FLAG_SAMPLED_AND_RECORDING
flags as it seems we do not distinguish sample and recording yet, and it causes the result always be "not sampling".Checklist
Issue reference
Fix #10402
Fix KAG-910