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

Don't generate a random to choose whether we should sample if sampling is fully disabled (rate = 0.0) #667

Conversation

Ten0
Copy link
Contributor

@Ten0 Ten0 commented Jul 12, 2024

Hopefully this will improve const propagation and avoid making calls to rng (which may be slow) when sampling is entirely disabled anyway.

@Swatinem Swatinem merged commit 8a04605 into getsentry:master Jul 12, 2024
13 checks passed
@Ten0 Ten0 deleted the dont_generate_random_to_choose_sampling_when_sampling_is_off branch July 12, 2024 13:00
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.

2 participants