diff --git a/src/App.tsx b/src/App.tsx index 41edd9e0..2340ef34 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,4 @@ import { ActionSheetProvider } from '@expo/react-native-action-sheet' -import * as Sentry from '@sentry/react-native' import { QueryClientProvider } from '@tanstack/react-query' import AccessibilityManager from '@utils/accessibility/AccessibilityManager' import { connectVerify } from '@utils/api/helpers/connect' @@ -117,4 +116,4 @@ const App: React.FC = () => { ) } -export default Sentry.wrap(App) +export default App diff --git a/src/screens/index.tsx b/src/screens/index.tsx index 4b57bef3..d79488ac 100644 --- a/src/screens/index.tsx +++ b/src/screens/index.tsx @@ -28,7 +28,6 @@ import { useTranslation } from 'react-i18next' import { IntlProvider } from 'react-intl' import { Alert, Platform, StatusBar } from 'react-native' import ShareMenu from 'react-native-share-menu' -import { routingInstrumentation } from '../utils/startup/sentry' const Stack = createNativeStackNavigator() @@ -226,7 +225,6 @@ const Screens: React.FC = () => { routingInstrumentation.registerNavigationContainer(navigationRef)} onStateChange={navigationContainerOnStateChange} > diff --git a/src/utils/startup/sentry.ts b/src/utils/startup/sentry.ts index 063d2d6a..d8f877d3 100644 --- a/src/utils/startup/sentry.ts +++ b/src/utils/startup/sentry.ts @@ -2,21 +2,12 @@ import * as Sentry from '@sentry/react-native' import { isDevelopment } from '@utils/helpers/checkEnvironment' import log from './log' -export const routingInstrumentation = new Sentry.ReactNavigationInstrumentation() - const sentry = () => { log('log', 'Sentry', 'initializing') Sentry.init({ enabled: !isDevelopment, dsn: 'https://53348b60ff844d52886e90251b3a5f41@o917354.ingest.sentry.io/6410576', - tracesSampleRate: 0.35, - integrations: [ - new Sentry.ReactNativeTracing({ - routingInstrumentation, - tracingOrigins: ['tooot.app'] - }) - ], autoSessionTracking: true }) }