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:
parent
a886d22437
commit
412b850538
1 changed files with 8 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue