Skip to content

Commit 4340f8d

Browse files
fix: remove unused imports from setupSentry
1 parent d466651 commit 4340f8d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/setup/telemetry/setupSentry.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
import * as Sentry from '@sentry/react-native';
22
import {Platform} from 'react-native';
3-
import {isDevelopment} from '@libs/Environment/Environment';
43
import {breadcrumbsIntegration, browserProfilingIntegration, consoleIntegration, navigationIntegration, tracingIntegration} from '@libs/telemetry/integrations';
54
import {processBeforeSendLogs, processBeforeSendTransactions} from '@libs/telemetry/middlewares';
65
import CONFIG from '@src/CONFIG';
76
import CONST from '@src/CONST';
87
import pkg from '../../../package.json';
9-
import makeDebugTransport from './debugTransport';
108

119
function setupSentry(): void {
1210
// With Sentry enabled in dev mode, profiling on iOS and Android does not work
1311
// If you want to enable Sentry in dev, set ENABLE_SENTRY_ON_DEV=true in .env
14-
if (isDevelopment() && !CONFIG.ENABLE_SENTRY_ON_DEV) {
15-
return;
16-
}
12+
// if (isDevelopment() && !CONFIG.ENABLE_SENTRY_ON_DEV) {
13+
// return;
14+
// }
1715

1816
const integrations = [navigationIntegration, tracingIntegration, browserProfilingIntegration, breadcrumbsIntegration, consoleIntegration].filter((integration) => !!integration);
1917

2018
Sentry.init({
2119
dsn: CONFIG.SENTRY_DSN,
22-
transport: isDevelopment() ? makeDebugTransport : undefined,
20+
// transport: isDevelopment() ? makeDebugTransport : undefined,
2321
tracesSampleRate: 1.0,
2422
// 1. Profiling for Android is currently disabled because it causes crashes sometimes.
2523
// 2. When updating the profile sample rate, make sure it will not blow up our current limit in Sentry.

0 commit comments

Comments
 (0)