Skip to content

Commit

Permalink
chore-fe: Sentry Beta 추가 (#589)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeongwoo Park <[email protected]>
  • Loading branch information
github-actions[bot] and lurgi authored Aug 22, 2024
1 parent 37f587b commit c4c9b77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ declare namespace NodeJS {
SENTRY_DSN: string;
SENTRY_AUTH_TOKEN: string;
GA_MEASUREMENT_ID: string;
PROD_URL: string;
DEV_URL: string;
}
}
5 changes: 3 additions & 2 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import { ModalProvider } from '@contexts/ModalContext';
import { Global, ThemeProvider } from '@emotion/react';
import ToastProvider from '@contexts/ToastContext';

import { BASE_URL } from '@constants/constants';
import globalStyles from './styles/globalStyles';
import theme from './styles/theme';

import AppRouter from './router/AppRouter';

const { PROD_URL, DEV_URL } = process.env;

async function setPrev() {
if (process.env.NODE_ENV === 'development') {
Sentry.getCurrentScope().setLevel('info');
Expand All @@ -29,7 +30,7 @@ async function setPrev() {
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
tracePropagationTargets: ['localhost', BASE_URL],
tracePropagationTargets: ['localhost', PROD_URL, DEV_URL],
// Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
Expand Down

0 comments on commit c4c9b77

Please sign in to comment.