Skip to content

Commit

Permalink
fix-fe: msw, sentry 충돌 해결 (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeongwoo Park <[email protected]>
  • Loading branch information
2 people authored and seongjinme committed Aug 23, 2024
1 parent bf9e113 commit 802f932
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ import theme from './styles/theme';

import AppRouter from './router/AppRouter';

Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
tracePropagationTargets: ['localhost', BASE_URL],
// Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});

async function setPrev() {
if (process.env.NODE_ENV === 'development') {
Sentry.getCurrentScope().setLevel('info');
Expand All @@ -34,6 +23,17 @@ async function setPrev() {
if (process.env.NODE_ENV === 'production') {
ReactGA.initialize(process.env.GA_MEASUREMENT_ID);
}

Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
tracePropagationTargets: ['localhost', BASE_URL],
// Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
}

const queryClient = new QueryClient({
Expand Down

0 comments on commit 802f932

Please sign in to comment.