diff --git a/server/app.js b/server/app.js index 13ef2ba41..297656f59 100644 --- a/server/app.js +++ b/server/app.js @@ -105,6 +105,10 @@ app.on('error', (error, ctx) => { if (process.env.SENTRY_DSN) { Sentry.withScope(function(scope) { + const requestId = ctx.headers['x-request-id']; + if (requestId) { + scope.setTag('request_id', requestId); + } scope.addEventProcessor(function(event) { return Sentry.Handlers.parseRequest(event, ctx.request); });