From 4819be00931ff2d23d9e921200711413fb98d5f5 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Fri, 9 Jan 2026 17:14:42 -0300 Subject: [PATCH] chore: Add sentry http integration (#26634) --- apps/web/sentry.server.config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/sentry.server.config.ts b/apps/web/sentry.server.config.ts index aebf5035dc..98df540382 100644 --- a/apps/web/sentry.server.config.ts +++ b/apps/web/sentry.server.config.ts @@ -1,3 +1,6 @@ +//biome-ignore-all lint/style/noProcessEnv: Server side +//biome-ignore-all lint/correctness/noProcessGlobal: Server side + // This file configures the initialization of Sentry on the server. // The config you add here will be used whenever the server handles a request. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ @@ -7,8 +10,9 @@ 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()], + tracesSampleRate: + parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE ?? "0.0") || 0.0, + integrations: [Sentry.prismaIntegration(), Sentry.httpIntegration()], beforeSend(event) { event.tags = { ...event.tags,