diff --git a/rust_snuba/src/processors/eap_spans.rs b/rust_snuba/src/processors/eap_spans.rs index 3733f28335..d80996bd87 100644 --- a/rust_snuba/src/processors/eap_spans.rs +++ b/rust_snuba/src/processors/eap_spans.rs @@ -217,7 +217,7 @@ impl From for EAPSpan { // lower precision to compensate floating point errors res.sampling_factor = (res.sampling_factor * 1e9).round() / 1e9; - res.sampling_weight = (1.0 / res.sampling_factor) as u64; + res.sampling_weight = (1.0 / res.sampling_factor).round() as u64; if let Some(data) = from.data { for (k, v) in data {