Skip to content

Commit 49b13a1

Browse files
authored
fix: reduced sampling rate (#870)
1 parent d746274 commit 49b13a1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

compose/neurosynth-frontend/src/index.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ import App from './App';
1010
import './index.css';
1111

1212
export type Style = Record<string, SystemStyleObject>;
13-
export type ColorOptions =
14-
| 'inherit'
15-
| 'primary'
16-
| 'secondary'
17-
| 'success'
18-
| 'error'
19-
| 'info'
20-
| 'warning';
13+
export type ColorOptions = 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
2114

2215
declare module '@mui/material/styles/createPalette' {
2316
interface Palette {
@@ -97,8 +90,15 @@ const env = import.meta.env.VITE_APP_ENV as 'DEV' | 'STAGING' | 'PROD';
9790
if (env === 'PROD') {
9891
Sentry.init({
9992
dsn: 'https://348a42291ed44c3baf7e2d94a0dfc08f@o4505036784992256.ingest.sentry.io/4505036786040832',
100-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
101-
replaysSessionSampleRate: 0.5,
93+
integrations: [
94+
Sentry.browserTracingIntegration(),
95+
Sentry.replayIntegration({
96+
maskAllText: false,
97+
blockAllMedia: false,
98+
maskAllInputs: true,
99+
}),
100+
],
101+
replaysSessionSampleRate: 0.1,
102102
replaysOnErrorSampleRate: 1.0,
103103
});
104104
}

0 commit comments

Comments
 (0)