From f08e296923897a024a017e36e9b3b8e823bc1b94 Mon Sep 17 00:00:00 2001 From: acaldas Date: Mon, 22 Jul 2024 13:41:40 +0100 Subject: [PATCH] feat: added extra error data to main sentry config --- api/src/app.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/app.ts b/api/src/app.ts index 546940eb..e7c677bb 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -26,6 +26,10 @@ export const createApp = (): { app: Express; router: express.Router } => { dsn: process.env.SENTRY_DSN, environment: process.env.SENTRY_ENV ?? 'dev', integrations: [ + Sentry.extraErrorDataIntegration({ + depth: 15, + captureErrorCause: true, + }), nodeProfilingIntegration(), new Sentry.Integrations.Express({ app,