Skip to content

Commit 374c961

Browse files
authored
fix 1-in-a-billion chance to sample with 0.0 sample rate (#644)
1 parent 5f3d9ca commit 374c961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-core/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl Client {
377377
if rate >= 1.0 {
378378
true
379379
} else {
380-
random::<f32>() <= rate
380+
random::<f32>() < rate
381381
}
382382
}
383383
}

0 commit comments

Comments
 (0)