chore: Add sentry http integration (#26634)

This commit is contained in:
Volnei Munhoz
2026-01-09 20:14:42 +00:00
committed by GitHub
parent a9314471b4
commit 4819be0093
+6 -2
View File
@@ -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,