Skip to content
This repository was archived by the owner on Jun 14, 2021. It is now read-only.

Commit 6273377

Browse files
author
XiaoLin
committed
feat: sentry error tracking module
1 parent 5a36457 commit 6273377

File tree

3 files changed

+120
-2
lines changed

3 files changed

+120
-2
lines changed

package-lock.json

+113-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"homepage": "https://github.com/JAVClub/core#readme",
2424
"dependencies": {
25+
"@sentry/node": "^5.15.5",
2526
"bcrypt": "^4.0.1",
2627
"config": "^3.3.0",
2728
"cookie-parser": "^1.4.5",

src/app.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
const Sentry = require('@sentry/node')
2+
3+
Sentry.init({
4+
dsn: 'https://a5df6f6888404ec492be93b7e93b5dd3@o230009.ingest.sentry.io/5217379'
5+
})
6+
17
require('./api/init')
28
require('./import/init')

0 commit comments

Comments
 (0)