Skip to content

Commit 4fc9944

Browse files
committed
add additional metadata that we send to sentry
1 parent 8abcb01 commit 4fc9944

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ const redis = require('./lib/redis')
3131

3232
Raven.config(SENTRY_URL).install()
3333

34+
// The request handler must be the first middleware on the app
35+
app.use(Raven.requestHandler())
36+
37+
// The error handler must be before any other error middleware
38+
app.use(Raven.errorHandler())
39+
3440
if (process.env.NODE_ENV !== 'test') {
3541
app.use(metricsMiddleware())
3642
app.get('/metrics', (req, res) => {

0 commit comments

Comments
 (0)