Skip to content

Commit ee32218

Browse files
authored
Remove Sentry trace/transaction (GitbookIO#258)
1 parent 76dbf0f commit ee32218

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sentry.edge.config.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ import * as Sentry from '@sentry/nextjs';
33
const dsn = process.env.SENTRY_DSN;
44
if (dsn) {
55
Sentry.init({
6-
dsn,
7-
tracesSampleRate: 0.01,
86
debug: false,
7+
dsn,
8+
9+
// Disable tracing as it creates additional requests in an env where subrequests are limited.
10+
enableTracing: false,
11+
12+
// Disable transactions as it creates additional requests in an env where subrequests are limited.
13+
// https://docs.sentry.io/platforms/node/configuration/filtering/#using--3
14+
beforeSendTransaction: () => {
15+
return null;
16+
},
917
});
1018
}

0 commit comments

Comments
 (0)