Skip to content

Commit 7bf8848

Browse files
authored
Merge pull request #181 from scientist-softserv/i8-setup-exception-tracking-sentry
i8-setup-exception-tracking-sentry
2 parents 15c1a17 + 1476cd4 commit 7bf8848

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
* JSX is not standard js so it's recommended that an app's entry point be a .js file
33
* https://stackoverflow.com/a/60234368/8079848
44
*/
5+
import { Integrations } from "@sentry/tracing";
6+
import * as Sentry from "@sentry/react";
57

68
import './assets/theme/global.scss'
79
import './assets/fontawesome.js'
810

911
export * from './components'
1012
export * from './compounds'
13+
14+
Sentry.init({
15+
dsn: process.env.SENTRY_DSN,
16+
integrations: [
17+
new Integrations.BrowserTracing(),
18+
],
19+
tracesSampleRate: 1.0,
20+
});

0 commit comments

Comments
 (0)