Skip to content

Commit

Permalink
Dont use deprecated method for react-router sentry (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd authored Oct 8, 2024
1 parent f9d1806 commit e2fcd6f
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,12 @@ const fjernPersonopplysninger = (event: Event): Event => {
Sentry.init({
dsn: 'https://1ab82c2af7614a74b134e36b3bd2e0b4@sentry.gc.nav.no/163',
integrations: [
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.reactRouterV6Instrumentation(
React.useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes,
),
tracePropagationTargets: [
'aktivitetsplan.nav.no',
'aktivitetsplan.ekstern.dev.nav.no',
// /(\.dev)?nav.no\/veilarbdialog/,
// /(\.dev)?nav.no\/veilarboppfolging/,
// /(\.dev)?nav.no\/veilarbaktivitet/,
// /(\.dev)?nav.no\/veilarblest/,
],
Sentry.reactRouterV6BrowserTracingIntegration({
useEffect: React.useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes,
}),
captureConsoleIntegration({
// array of methods that should be captured
Expand Down

0 comments on commit e2fcd6f

Please sign in to comment.