Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/web/sentry.server.config.ts
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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,
Expand Down