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.
| Model | Source |
|---|---|
| sonnet | pack: monitoring |
Full Reference
┏━ 🔧 sentry ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when integrating Sentry for error tracking… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Sentry
Section titled “Sentry”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.
Quick Reference
Section titled “Quick Reference”| Item | Value |
|---|---|
| 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 token | SENTRY_AUTH_TOKEN |
| DSN format | https://<key>@o<org>.ingest.sentry.io/<project> |
| Node minimum | 18.0.0 |
| TypeScript minimum | 5.0.4 |
Reference Index
Section titled “Reference Index”| I want to… | File |
|---|---|
| Install and initialize the SDK | reference/setup.md |
| Capture exceptions and messages | reference/error-capture.md |
| Add custom spans, transactions, and sampling | reference/performance.md |
| Attach breadcrumbs, user context, tags, and scope | reference/breadcrumbs.md |
| Upload source maps for readable stack traces | reference/source-maps.md |
| Configure session replay with privacy controls | reference/session-replay.md |
| Create alerts, uptime checks, and filter events | reference/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.