Skip to content

Commit f06aa41

Browse files
committed
add console.error reporting
1 parent f524090 commit f06aa41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import * as ReactDOM from "react-dom"
33

44
import * as Sentry from "@sentry/react";
55
import { BrowserTracing } from "@sentry/tracing";
6+
import { CaptureConsole as CaptureConsoleIntegration } from "@sentry/integrations";
7+
68

79
import App from "./App"
810

911
Sentry.init({
1012
dsn: process.env.SENTRY_DSN,
11-
integrations: [new BrowserTracing()],
13+
integrations: [new BrowserTracing(), new CaptureConsoleIntegration({levels: ['error']})],
1214
tracesSampleRate: 1.0,
1315
});
1416

0 commit comments

Comments
 (0)