From e32d8121fb909439365e7fb440ca124a2e8505e4 Mon Sep 17 00:00:00 2001 From: Brian Beckerle <49686530+brainbicycle@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:24:55 +0200 Subject: [PATCH] chore: remove sentry bootstrap environment (#10979) * use newer function for instantiating tracing * remove bootstrap sentry env --- index-common.js | 1 - src/app/system/errorReporting/setupSentry.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/index-common.js b/index-common.js index c6bbab7866d..cce186ddbf9 100644 --- a/index-common.js +++ b/index-common.js @@ -17,7 +17,6 @@ if (__DEV__) { } catch {} } -require("./src/app/system/errorReporting/setupSentry").setupSentry({ environment: "bootstrap" }) import "react-native-url-polyfill/auto" const { AppRegistry } = require("react-native") diff --git a/src/app/system/errorReporting/setupSentry.ts b/src/app/system/errorReporting/setupSentry.ts index b8ae1fb3080..9f6f4b1e267 100644 --- a/src/app/system/errorReporting/setupSentry.ts +++ b/src/app/system/errorReporting/setupSentry.ts @@ -71,7 +71,7 @@ export function setupSentry(props: SetupSentryProps = { debug: false }) { tracesSampleRate: props.debug ? 1.0 : 0.1, debug: props.debug, integrations: [ - new Sentry.ReactNativeTracing({ + Sentry.reactNativeTracingIntegration({ routingInstrumentation, beforeNavigate: (context: TransactionContext) => { /**