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
+1
View File
@@ -137,6 +137,7 @@ NEXT_PUBLIC_SENDGRID_SENDER_NAME=
# Sentry
# Used for capturing exceptions and logging messages
NEXT_PUBLIC_SENTRY_DSN=
SENTRY_MAX_SPANS=
SENTRY_TRACES_SAMPLE_RATE=
# Formbricks Experience Management Integration
+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,
},
});
+1
View File
@@ -38,6 +38,7 @@
"NEXT_PUBLIC_STRIPE_TEAM_MONTHLY_PRICE_ID",
"NEXT_PUBLIC_WEBAPP_URL",
"NEXT_PUBLIC_WEBSITE_URL",
"SENTRY_MAX_SPANS",
"SENTRY_TRACES_SAMPLE_RATE",
"STRIPE_PREMIUM_PLAN_PRODUCT_ID",
"STRIPE_TEAM_MONTHLY_PRICE_ID",