Skip to content

Commit 9c80560

Browse files
committed
add extraErrorDataIntegration
1 parent fb199d0 commit 9c80560

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

instrumentation-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Sentry from "@sentry/nextjs";
22
Sentry.init({
33
enabled: process.env.NODE_ENV !== 'development',
44
dsn: process.env.SENTRY_DSN,
5+
integrations: [Sentry.extraErrorDataIntegration({ depth: 10 })],
56
// Adds request headers and IP for users
67
sendDefaultPii: true,
78
});

sentry.edge.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Sentry from "@sentry/nextjs";
22
Sentry.init({
33
enabled: process.env.NODE_ENV !== 'development',
44
dsn: process.env.SENTRY_DSN,
5+
integrations: [Sentry.extraErrorDataIntegration({ depth: 10 })],
56
// Adds request headers and IP for users
67
sendDefaultPii: true,
78
});

sentry.server.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Sentry from "@sentry/nextjs";
22
Sentry.init({
33
enabled: process.env.NODE_ENV !== 'development',
44
dsn: process.env.SENTRY_DSN,
5+
integrations: [Sentry.extraErrorDataIntegration({ depth: 10 })],
56
// Adds request headers and IP for users
67
sendDefaultPii: true,
78
});

0 commit comments

Comments
 (0)