0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Filtered Sentry network breadcrumbs to reduce noise

no issue

- Sentry error reports were full of network breadcrumbs that weren't useful, added filtering to remove ones that aren't helpful in error logs
This commit is contained in:
Kevin Ansfield 2024-09-19 11:12:17 +01:00
parent a886d22437
commit 412b850538

View file

@ -213,7 +213,14 @@ export default Route.extend(ShortcutsRoute, {
// - http://ember-concurrency.com/docs/cancelation // - http://ember-concurrency.com/docs/cancelation
'TaskCancelation' 'TaskCancelation'
], ],
integrations: [] integrations: [],
beforeBreadcrumb(breadcrumb) {
// ignore breadcrumbs for event tracking to reduce noise in error reports
if (breadcrumb.category === 'http' && breadcrumb.data?.url?.match(/\/e\.ghost\.org|plausible\.io/)) {
return null;
}
return breadcrumb;
}
}; };
try { try {