Skip to content

Commit 0fdee66

Browse files
committed
Add capture exception/message
1 parent f4c1227 commit 0fdee66

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const Sentry = require("@sentry/node");
2+
3+
Sentry.init({
4+
dsn: "https://[email protected]/0000000",
5+
});
6+
7+
Sentry.captureException(new Error("error here!"));
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const Sentry = require("@sentry/node");
2+
3+
Sentry.init({
4+
dsn: "https://[email protected]/0000000",
5+
});
6+
7+
Sentry.captureMessage("this is a message");

0 commit comments

Comments
 (0)