perf: Add ability to configure Sentry maxSpans (#17411)

This commit is contained in:
Keith Williams
2024-10-30 13:54:22 +00:00
committed by GitHub
parent c3f03c8000
commit dfa4e10c83
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -3,4 +3,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0,
_experiments: {
maxSpans: parseInt(process.env.SENTRY_MAX_SPANS ?? "1000") || 1000,
},
});