Skip to content

Commit

Permalink
[Frontend] Upgrade Sentry from v6 to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Oct 7, 2024
1 parent b81d179 commit 4d712a3
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 68 deletions.
247 changes: 183 additions & 64 deletions services/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions services/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.3",
"@sentry/browser": "^6.18.2",
"@sentry/tracing": "^6.18.2",
"@sentry/browser": "^8.33.1",
"axios": "^0.28.1",
"highcharts": "^11.4.3",
"immer": "^10.0.4",
Expand Down
3 changes: 1 addition & 2 deletions services/frontend/src/util/sentry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as Sentry from '@sentry/browser'
import { Integrations } from '@sentry/tracing'

import { runningInCypress, sentryEnvironment, sentryRelease, sentryDSN } from '@/conf'

Expand All @@ -10,7 +9,7 @@ export const initializeSentry = () => {
dsn: sentryDSN,
environment: sentryEnvironment,
release: sentryRelease,
integrations: [new Integrations.BrowserTracing()],
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
})
}

0 comments on commit 4d712a3

Please sign in to comment.