Checking in progress, though not fully working as expected

This commit is contained in:
Ryan Ward
2026-07-27 11:41:20 -05:00
parent 856a6cd6f3
commit 309000a303
51 changed files with 74 additions and 3315 deletions
-13
View File
@@ -103,25 +103,12 @@ macro_rules! report_if_error {
}
pub use report_if_error;
/// Returns whether or not a log entry with the given metadata should be
/// ignored by Sentry.
#[cfg(feature = "crash_reporting")]
pub fn should_ignore_log_for_sentry(md: &log::Metadata) -> bool {
// Filter out any Error-level log entries generated by report_error!().
// report_error!() utilizes capture_anyhow() to report structured errors
// instead of simple string error messages, and we don't want to _also_
// report the Error-level log line to Sentry.
md.target() == LOG_TARGET && md.level() == log::Level::Error
}
pub trait ErrorExt: RegisteredError + std::error::Error {
/// Returns whether or not an error is something that is actionable by our
/// engineering team.
fn is_actionable(&self) -> bool;
fn report_error(&self) {
#[cfg(feature = "crash_reporting")]
sentry::capture_error(self);
}
}