Tag ErrorBoundaries as fatal in Sentry

This commit is contained in:
Alex Gleason committed 2025-12-06 15:44:31 -06:00
1 parent 3f792defcc
commit 6ba82b5e4a
1 file changed
+4
+4
View File
@@ -100,11 +100,15 @@ export function ErrorBoundary({
const Sentry = getSentryInstance();
if (Sentry) {
Sentry.captureException(error, {
level: 'fatal', // Mark as fatal/unhandled error (skull icon in Sentry UI)
contexts: {
react: {
componentStack: info.componentStack,
},
},
tags: {
errorBoundary: 'true', // Tag to easily filter these errors
},
});
}
}