Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit e47e4da

Browse files
committed
chore(web): sentry
1 parent be7a93b commit e47e4da

File tree

3 files changed

+145
-0
lines changed

3 files changed

+145
-0
lines changed

package-lock.json

Lines changed: 131 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"@mui/material": "^5.0.4",
1414
"@mui/styles": "^5.0.1",
1515
"@reach/router": "^1.3.4",
16+
"@sentry/react": "^6.13.3",
17+
"@sentry/tracing": "^6.13.3",
1618
"dayjs": "^1.10.7",
1719
"framer-motion": "^4.1.17",
1820
"i18next": "^20.6.1",

src/main.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom'
3+
import * as Sentry from '@sentry/react'
4+
import { Integrations } from '@sentry/tracing'
35
import './index.css'
46
import App from './App'
57

8+
Sentry.init({
9+
dsn: 'https://becf2bbe48f04c208b499233128f6776@o1041301.ingest.sentry.io/6010206',
10+
integrations: [new Integrations.BrowserTracing()],
11+
12+
// Set tracesSampleRate to 1.0 to capture 100%
13+
// of transactions for performance monitoring.
14+
// We recommend adjusting this value in production
15+
tracesSampleRate: 1.0,
16+
})
17+
618
ReactDOM.render(
719
<React.StrictMode>
820
<App />

0 commit comments

Comments
 (0)