chore: Lower number of errors sent to Sentry (#21300)

This commit is contained in:
Keith Williams authored and GitHub committed 2025-05-14 12:21:13 +00:00
1 parent df75df7008
commit f50be6c08b
6 files changed
+11 -10

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
sampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE ?? "1.0") || 1.0,
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0,
+1 -1
View File
@@ -6,7 +6,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
sampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE ?? "1.0") || 1.0,
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0,
+1
View File
@@ -6,6 +6,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
debug: !!process.env.SENTRY_DEBUG,
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
sampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE ?? "1.0") || 1.0,
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0,
integrations: [Sentry.prismaIntegration()],
beforeSend(event) {