File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ module.exports = {
227
227
enabled : false ,
228
228
options : {
229
229
dsn : '' ,
230
+ // Note: integrations are defined directly at `Sentry.init()`, don't add them here.
230
231
} ,
231
232
} ,
232
233
// Webpack bundle analyzer
Original file line number Diff line number Diff line change @@ -6,9 +6,13 @@ const mongoose = require('./mongoose');
6
6
const express = require ( './express' ) ;
7
7
const chalk = require ( 'chalk' ) ;
8
8
const Sentry = require ( '@sentry/node' ) ;
9
+ const Tracing = require ( '@sentry/tracing' ) ;
9
10
10
11
if ( config . sentry . enabled ) {
11
- Sentry . init ( config . sentry . options ) ;
12
+ Sentry . init ( {
13
+ ...config . sentry . options ,
14
+ integrations : [ new Tracing . Integrations . Mongo ( { useMongoose : true } ) ] ,
15
+ } ) ;
12
16
}
13
17
14
18
// Initialize Models
@@ -78,6 +82,12 @@ module.exports.start = function start(callback) {
78
82
: 'off' ) ,
79
83
) ,
80
84
) ;
85
+ console . log (
86
+ chalk . green (
87
+ 'Sentry:\t\t' +
88
+ ( config . sentry && config . sentry . enabled === true ? 'on' : 'off' ) ,
89
+ ) ,
90
+ ) ;
81
91
82
92
// Reset console color
83
93
console . log ( chalk . white ( '--' ) ) ;
Original file line number Diff line number Diff line change 67
67
"@sentry/browser" : " 6.2.5" ,
68
68
"@sentry/integrations" : " 6.2.5" ,
69
69
"@sentry/node" : " 6.2.5" ,
70
+ "@sentry/tracing" : " 6.2.5" ,
70
71
"acl" : " 0.4.11" ,
71
72
"agenda" : " 1.0.3" ,
72
73
"angular" : " 1.6.10" ,
You can’t perform that action at this time.
0 commit comments