File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import * as Sentry from "@sentry/react" ;
12import React from "react" ;
23import { createRoot } from "react-dom/client" ;
34import App from "./App" ;
4- import * as Sentry from "@sentry/react" ;
55
66try {
77 await import ( "./sentry" ) ;
Original file line number Diff line number Diff line change 11import * as Sentry from "@sentry/react" ;
2+ import { BrowserTracing } from "@sentry/tracing" ;
3+ import { Replay } from "@sentry/replay" ;
24
35Sentry . init ( {
46 dsn : "https://de284553b9b4c7a3f7bcd9786eb802f2@o4509151884148736.ingest.us.sentry.io/4510040067735557" ,
57 integrations : [
68 Sentry . browserTracingIntegration ( ) ,
7- Sentry . replayIntegration ( )
9+ Sentry . replayIntegration ( ) ,
10+ new BrowserTracing ( ) ,
11+ new Replay ( ) ,
812 ] ,
913 tracesSampleRate : 1.0 ,
1014 replaysSessionSampleRate : 0.1 ,
@@ -13,5 +17,4 @@ Sentry.init({
1317 enableTracing : true
1418} ) ;
1519
16- // Optional: force a test error at startup
17- // Sentry.captureException(new Error("Startup test error"));
20+ Sentry . captureException ( new Error ( "Startup test error" ) ) ;
You can’t perform that action at this time.
0 commit comments