Fixed regex to ignore AbortError in Sentry (#20639)

fixes https://linear.app/tryghost/issue/SLO-175
This commit is contained in:
Sag 2024-07-22 09:55:37 +02:00 committed by GitHub
parent ec019f6a70
commit e740cef863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ export default Route.extend(ShortcutsRoute, {
beforeSend,
ignoreErrors: [
// Browser autoplay policies (this regex covers a few)
/The play() request was interrupted/,
/^The play\(\) request was interrupted.*/,
/The request is not allowed by the user agent or the platform in the current context/,
// Network errors that we don't control

View File

@ -34,7 +34,7 @@ export function beforeSend(event, hint) {
delete event.tags.ajax_url;
}
// Do not report poshog-js errors to Sentry
// Do not report posthog-js errors to Sentry
if (hint && hint.originalException && hint.originalException.stack) {
if (hint.originalException.stack.includes('/posthog-js/')) {
return null;