From 8a61650d44de204ee4219148ccac3ed99e45aabf Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Sun, 8 Nov 2026 09:39:23 +0200 Subject: [PATCH] Revert "Stop native Sentry from tracing every request (#12349)" (#12353) --- src/logger/sentry/setup/index.ts | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/logger/sentry/setup/index.ts b/src/logger/sentry/setup/index.ts index 190c77373..4b75e5890 100644 --- a/src/logger/sentry/setup/index.ts +++ b/src/logger/sentry/setup/index.ts @@ -1,8 +1,4 @@ -import { - getGlobalScope, - init, - reactNativeTracingIntegration, -} from '@sentry/react-native' +import {getGlobalScope, init} from '@sentry/react-native' import {featureFlagsIntegration} from '#/logger/sentry/featureFlags' import {dropExpectedNetworkErrors} from '#/logger/sentry/network-errors' @@ -19,25 +15,7 @@ init({ dist: env.BUNDLE_IDENTIFIER, release: env.SENTRY_RELEASE, beforeSend: dropExpectedNetworkErrors, - integrations: [ - featureFlagsIntegration, - /* - * Setting tracesSampleRate adds this integration by default, which wraps - * every XHR/fetch in a span. Our only spans are the manual video ones, - * which are inactive, so request spans almost never have a parent and get - * discarded on device (millions a day as no_parent_span) after the work - * of creating them. Overriding it by name keeps the rest of the - * integration but skips request instrumentation. - */ - reactNativeTracingIntegration({traceFetch: false, traceXHR: false}), - ], - /* - * On native the SDK defaults this to match every URL, which adds - * sentry-trace and baggage headers (release, environment, public key) to - * requests to every host, including third-party PDSes and CDNs. None of our - * backends read them, so propagate to nothing. - */ - tracePropagationTargets: [], + integrations: [featureFlagsIntegration], ignoreErrors: [ /* * Unknown internals errors -- knotmirror 0.0.1