filter Windows disk-full errors from Sentry

This commit is contained in:
edde746
2026-04-16 06:25:24 +02:00
parent f9d8549e56
commit 1b1c4b741b
+5 -1
View File
@@ -231,7 +231,11 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
return true;
}
// Device out of disk space
if (v != null && (v.contains('SQLITE_FULL') || v.contains('No space left on device'))) {
if (v != null &&
(v.contains('SQLITE_FULL') ||
v.contains('No space left on device') ||
v.contains('errno = 112') ||
v.contains('database or disk is full'))) {
return true;
}
// Native HTTP errors from CFNetwork (server errors, not actionable)