de.sentry.io), ensuring error telemetry stays within the EEA in compliance with GDPR.
Project Details
Instrumentation Coverage
Sentry instruments three separate runtimes in Next.js:- Server
- Edge
- Client
sentry.server.config.ts — initialised for all server-side request handling.Key Configuration Options
Trace Sample Rate
tracesSampler for dynamic sampling based on route or error status.
PII Handling
Log Integration
Source Maps
Source maps are uploaded to Sentry during CI builds via@sentry/nextjs’s webpack plugin:
SENTRY_AUTH_TOKEN environment variable is required in CI for source map upload. It must be a project-scoped, upload-only token — not an organisation admin token.
Tunnel Route
/monitoring on the Next.js server. This ensures Sentry error reports are not blocked by browser ad-blockers or privacy extensions.