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