Skip to content

Commit

Permalink
fix 1-in-a-billion chance to sample with 0.0 sample rate (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
guswynn authored Feb 29, 2024
1 parent 5f3d9ca commit 374c961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry-core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl Client {
if rate >= 1.0 {
true
} else {
random::<f32>() <= rate
random::<f32>() < rate
}
}
}
Expand Down

0 comments on commit 374c961

Please sign in to comment.