We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbde6db commit 5620325Copy full SHA for 5620325
packages/core/src/index.ts
@@ -9,6 +9,13 @@ if (settings.SENTRY.DSN) {
9
Sentry.init({
10
dsn: settings.SENTRY.DSN,
11
});
12
+
13
+ // Oak handles errors automatically
14
+ // So we capture them here so sentry can get them
15
+ api.addEventListener("error", (event) => {
16
+ Sentry.captureException(event.error);
17
+ });
18
19
console.info("Sentry initialized");
20
} else {
21
console.error("Skipping Sentry initialization, no DSN provided");
0 commit comments