diff --git a/app/scripts/lib/setupSentry.js b/app/scripts/lib/setupSentry.js index e268d25b2810..b2286777c32f 100644 --- a/app/scripts/lib/setupSentry.js +++ b/app/scripts/lib/setupSentry.js @@ -86,7 +86,12 @@ function getClientOptions() { integrations: [ Sentry.dedupeIntegration(), Sentry.extraErrorDataIntegration(), - Sentry.browserTracingIntegration(), + Sentry.browserTracingIntegration({ + shouldCreateSpanForRequest: (url) => { + // Do not create spans for outgoing requests to a 'sentry.io' domain. + return !url.match(/sentry\.io\/?$/u); + }, + }), filterEvents({ getMetaMetricsEnabled, log }), ], release: RELEASE,