mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
filter breadcrumbs for improved clarity while debugging sentry errors (#15639)
This commit is contained in:
parent
fc232da4c4
commit
94180e850e
@ -114,6 +114,22 @@ export default function setupSentry({ release, getState }) {
|
||||
}
|
||||
return rewriteReport(report);
|
||||
},
|
||||
beforeBreadcrumb(breadcrumb) {
|
||||
if (getState) {
|
||||
const appState = getState();
|
||||
if (
|
||||
Object.values(appState).length &&
|
||||
(!appState?.store?.metamask?.participateInMetaMetrics ||
|
||||
!appState?.store?.metamask?.completedOnboarding ||
|
||||
breadcrumb?.category === 'ui.input')
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
return breadcrumb;
|
||||
},
|
||||
});
|
||||
|
||||
function rewriteReport(report) {
|
||||
|
Loading…
Reference in New Issue
Block a user