Skip to content

Commit

Permalink
Sample overloaded less so we can see what's going on. (#32661)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 333e32b526830505c1ad6c7e352dfa2e8a759651
  • Loading branch information
nipunn1313 authored and Convex, Inc. committed Dec 30, 2024
1 parent 8ec6590 commit 3c05304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
}
}

Expand Down

0 comments on commit 3c05304

Please sign in to comment.