Skip to content

Commit e554f44

Browse files
authored
Still sentry
1 parent c9d5f52 commit e554f44

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import * as Sentry from "@sentry/react";
12
import React from "react";
23
import { createRoot } from "react-dom/client";
34
import App from "./App";
4-
import * as Sentry from "@sentry/react";
55

66
try {
77
await import("./sentry");

src/sentry.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import * as Sentry from "@sentry/react";
2+
import { BrowserTracing } from "@sentry/tracing";
3+
import { Replay } from "@sentry/replay";
24

35
Sentry.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"));

0 commit comments

Comments
 (0)