Skip to content

Commit

Permalink
Adds sentry rrv7 integration?
Browse files Browse the repository at this point in the history
  • Loading branch information
a-poor committed Jan 4, 2025
1 parent cb50fb5 commit b763ae9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/entry.client.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import { startTransition, StrictMode } from "react";
import { useEffect, startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";
import { HydratedRouter } from "react-router/dom";
import {
createRoutesFromChildren,
useLocation,
useNavigationType,
matchRoutes,
} from "react-router";
import * as Sentry from '@sentry/react';

Sentry.init({
dsn: "https://[email protected]/4508586567794688",
integrations: [
Sentry.browserTracingIntegration(),
Sentry.reactRouterV7BrowserTracingIntegration({
useEffect,
useLocation,
useNavigationType,
matchRoutes,
createRoutesFromChildren,
}),
Sentry.replayIntegration(),
Sentry.browserProfilingIntegration(),
],
Expand Down

0 comments on commit b763ae9

Please sign in to comment.