TP-30224 | glitchtip fix

This commit is contained in:
Aman Chaturvedi
2023-06-12 14:47:47 +05:30
parent 2fb990628b
commit ca304936b5
2 changed files with 6 additions and 7 deletions

View File

@@ -33,7 +33,6 @@ import { TDocumentObj } from './src/screens/caseDetails/interface';
import AuthRouter from './src/screens/auth/AuthRouter';
import { initSentry } from './src/components/utlis/sentry';
Sentry.init({ dsn: SENTRY_DSN });
initSentry();
if (ENV !== 'prod') {

View File

@@ -12,12 +12,12 @@ const defaultOptions = {
dsn: SENTRY_DSN,
enableAutoSessionTracking: true,
environment: ENV,
integrations: [
new Sentry.ReactNativeTracing({
routingInstrumentation: sentryRoutingInstrumentation,
tracingOrigins: ['localhost', /^\//],
}),
],
// integrations: [
// new Sentry.ReactNativeTracing({
// routingInstrumentation: sentryRoutingInstrumentation,
// tracingOrigins: ['localhost', /^\//],
// }),
// ],
tracesSampleRate: 0.2,
};