Skip to content

Commit

Permalink
Merge pull request #5625 from kiva/fix-filter-external-load-errors-se…
Browse files Browse the repository at this point in the history
…ntry

fix: add additional error signature filter for pinterest tag
  • Loading branch information
mcstover authored Oct 29, 2024
2 parents af30859 + ea98843 commit cb6a946
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ async function setupSentry(app, router) {
// Skip Load failed caused by failed fetch calls in 3rd party libraries
// NOTE: we do see failed loads for our own async modules, this doesn't filter those out
// Sentry Event Link: https://kiva.sentry.io/issues/3808313433/events/427b92cf47ed4aaeb321caf20783eba0/
if ((eventAsString.indexOf('Load failed') !== -1 || eventAsString.indexOf('Failed to fetch') !== -1)
if ((eventAsString.indexOf('Load failed') !== -1
|| eventAsString.indexOf('Failed to fetch') !== -1
|| eventAsString.indexOf('TypeError') !== -1)
&& (
(eventAsString.indexOf('ct.pinterest') !== -1)
|| (eventAsString.indexOf('rum.management') !== -1)
Expand Down

0 comments on commit cb6a946

Please sign in to comment.