Skip to content

Commit

Permalink
feat: added extra error data to main sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldas committed Jul 22, 2024
1 parent 04dba33 commit f08e296
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f08e296

Please sign in to comment.