perf: Add ability to configure Sentry maxSpans (#17411)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user