perf: Allow configuring Sentry:debug (#17420)
This commit is contained in:
1 parent
fee3b73bda
commit
64551a506a
3 files changed
+3
No files matched your search
@@ -137,6 +137,7 @@ NEXT_PUBLIC_SENDGRID_SENDER_NAME=
|
||||
# Sentry
|
||||
# Used for capturing exceptions and logging messages
|
||||
NEXT_PUBLIC_SENTRY_DSN=
|
||||
SENTRY_DEBUG=
|
||||
SENTRY_MAX_SPANS=
|
||||
SENTRY_TRACES_SAMPLE_RATE=
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
|
||||
Sentry.init({
|
||||
debug: !!process.env.SENTRY_DEBUG,
|
||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0,
|
||||
_experiments: {
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"NEXT_PUBLIC_STRIPE_TEAM_MONTHLY_PRICE_ID",
|
||||
"NEXT_PUBLIC_WEBAPP_URL",
|
||||
"NEXT_PUBLIC_WEBSITE_URL",
|
||||
"SENTRY_DEBUG",
|
||||
"SENTRY_MAX_SPANS",
|
||||
"SENTRY_TRACES_SAMPLE_RATE",
|
||||
"STRIPE_PREMIUM_PLAN_PRODUCT_ID",
|
||||
|
||||
Reference in new issue
Block a user