-
Notifications
You must be signed in to change notification settings - Fork 93
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(dynamic_samping): Adjust sample rate by envelope header's sample_rate [INGEST-1395] #1327
Conversation
"user_id": "hello" | ||
} | ||
"###); | ||
} |
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.
Should we test this with some more values for sample_rate
? E.g. "bogus", "10e4", ...
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.
done
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.
Can we also add a test for a negative sample_rate
?
@jan-auer okay, I addressed half of the review comments. I am not acting on two things in this PR:
I think the PR as-is gets us quite far already. It doesn't make the existing problem of double-sampling worse, and we can run demos in prod as long as we point SDKs to the apex domain. |
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.
Requires the clippy fix in #1329.
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.
Blocking for panicking division by 0.
"user_id": "hello" | ||
} | ||
"###); | ||
} |
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.
Can we also add a test for a negative sample_rate
?
Co-authored-by: Iker Barriocanal <[email protected]>
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.
Removing my blocking, division by 0 doesn't panic with floats.
Removing my blocker, division by 0 doesn't panic with floats.
Co-authored-by: Iker Barriocanal <[email protected]>
Co-authored-by: Jan Michael Auer <[email protected]>
We have a new envelope header that tells us the configured sample rate of the client that initiated the trace. Adjust trace sampling by that incoming sample rate.
TODO: