From 3c05304cc370a307a7a5499747814411eeaf6723 Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Sun, 29 Dec 2024 22:38:49 -0800 Subject: [PATCH] Sample overloaded less so we can see what's going on. (#32661) GitOrigin-RevId: 333e32b526830505c1ad6c7e352dfa2e8a759651 --- crates/errors/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/errors/src/lib.rs b/crates/errors/src/lib.rs index 57c299f9..0c7c91af 100644 --- a/crates/errors/src/lib.rs +++ b/crates/errors/src/lib.rs @@ -422,8 +422,9 @@ impl ErrorMetadata { // 1% sampling for OCC/Overloaded/RateLimited, since we only really care about the // details if they happen at high volume. ErrorCode::RateLimited => Some((sentry::Level::Info, Some(0.001))), - ErrorCode::Overloaded => Some((sentry::Level::Warning, Some(0.001))), ErrorCode::OCC { .. } => Some((sentry::Level::Warning, Some(0.001))), + // we want to see these a bit more than the others above + ErrorCode::Overloaded => Some((sentry::Level::Warning, Some(0.1))), } }