fix: filter HTTPClientError and DiscordStateException from sentry

This commit is contained in:
edde746
2026-04-14 06:43:53 +02:00
parent 4cb65c1bfa
commit 6cbf0980c5
+4
View File
@@ -226,6 +226,10 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
if (v != null && (v.contains('SQLITE_FULL') || v.contains('No space left on device'))) {
return true;
}
// Native HTTP errors from CFNetwork (server errors, not actionable)
if (e.type == 'HTTPClientError') return true;
// Discord RPC errors when Discord is not running
if (e.type == 'DiscordStateException') return true;
return false;
}