Skip to content

Commit 438c0f8

Browse files
committed
update config
1 parent f1f30a7 commit 438c0f8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

client/src/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import * as Sentry from '@sentry/react';
4-
import { BrowserTracing } from '@sentry/tracing';
5-
import { Replay } from '@sentry/replay';
64

75
import './index.css';
86
import App from './App';
@@ -12,15 +10,14 @@ if (process.env.REACT_APP_SENTRY_DSN) {
1210
debug: true,
1311
dsn: process.env.REACT_APP_SENTRY_DSN,
1412
release: process.env.REACT_APP_GIT_SHA,
13+
replaysSessionSampleRate: 1.0,
14+
tracesSampleRate: 1.0,
1515
integrations: [
16-
new BrowserTracing({
16+
new Sentry.BrowserTracing({
1717
tracingOrigins: ['sourcemaps.io']
1818
}),
19-
new Replay({
20-
sessionSampleRate: 1.0
21-
})
19+
new Sentry.Replay()
2220
],
23-
tracesSampleRate: 1.0
2421
});
2522
}
2623

0 commit comments

Comments
 (0)