We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c78ba commit 51fe85dCopy full SHA for 51fe85d
crates/errors/src/lib.rs
@@ -373,6 +373,10 @@ impl ErrorMetadata {
373
}
374
375
pub fn should_report_to_sentry(&self) -> Option<(sentry::Level, Option<f64>)> {
376
+ // Sentry considers errors invalid if this field is empty.
377
+ if self.short_msg.is_empty() {
378
+ return None;
379
+ }
380
match self.code {
381
ErrorCode::ClientDisconnect => None,
382
ErrorCode::RateLimited => Some((sentry::Level::Info, Some(0.01))),
0 commit comments