Skip to content

sentry

Use when integrating Sentry for error tracking — SDK setup, source maps, performance monitoring, or alert configuration. Also use when debugging Sentry integration issues or optimizing event volume.

ModelSource
sonnetpack: monitoring
Full Reference

┏━ 🔧 sentry ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when integrating Sentry for error tracking… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Sentry SDK v9 (latest: ~9.32.x) for error tracking, performance monitoring, session replay, and alerting across Next.js, React SPA, Node.js, and serverless runtimes. The wizard handles most setup automatically for Next.js projects.

ItemValue
Wizard (Next.js)npx @sentry/wizard@latest -i nextjs
Wizard (React)npx @sentry/wizard@latest -i react
Wizard (Node)npx @sentry/wizard@latest -i node
DSN env var (browser)NEXT_PUBLIC_SENTRY_DSN
DSN env var (server)SENTRY_DSN
Source map tokenSENTRY_AUTH_TOKEN
DSN formathttps://<key>@o<org>.ingest.sentry.io/<project>
Node minimum18.0.0
TypeScript minimum5.0.4
I want to…File
Install and initialize the SDKreference/setup.md
Capture exceptions and messagesreference/error-capture.md
Add custom spans, transactions, and samplingreference/performance.md
Attach breadcrumbs, user context, tags, and scopereference/breadcrumbs.md
Upload source maps for readable stack tracesreference/source-maps.md
Configure session replay with privacy controlsreference/session-replay.md
Create alerts, uptime checks, and filter eventsreference/alerts.md

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.