Sentry is an application monitoring platform focused on error tracking and performance. It captures unhandled exceptions with full stack traces, source map support, and context about the user and environment. Sentry groups related errors, tracks regressions across releases, and provides performance monitoring with transaction tracing. It integrates deeply with Next.js, React, Node.js, and dozens of other platforms.
Capture every unhandled exception in production with full stack traces, breadcrumbs, and user context, automatically grouped by root cause and prioritized by impact.
Track crash-free rates and error regressions across releases to catch bugs introduced in new deployments before they affect all users.
Monitor Web Vitals (LCP, FID, CLS) and trace slow page loads from the browser through API calls to identify frontend and backend bottlenecks.
import * as Sentry from "@sentry/nextjs";Sentry.init({dsn: process.env.SENTRY_DSN,tracesSampleRate: 0.2,profilesSampleRate: 0.1,environment: process.env.NODE_ENV,});export async function processOrder(orderId: string) {return Sentry.withScope((scope) => {scope.setTag("order.id", orderId);scope.setContext("order", { orderId, timestamp: Date.now() });return Sentry.startSpan({ name: "order.process", op: "task" }, async () => {// Business logic here — errors are automatically captured with contextconst order = await fetchOrder(orderId);return fulfillOrder(order);});});}
Seamless integration, great documentation. Set up in under 10 minutes.
2 days ago
Works well for our use case. Would love to see more webhook event types.
1 week ago
Excellent compliance coverage. HIPAA audit trail works perfectly.
2 weeks ago
| Key | Description | Example |
|---|---|---|
| SENTRY_DSN | Data Source Name for sending events to Sentry | https://xxxxx@o12345.ingest.sentry.io/67890 |
| SENTRY_AUTH_TOKEN | Auth token for source map uploads | sntrys_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| SENTRY_ORG | Sentry organization slug | my-org |
| SENTRY_PROJECT | Sentry project slug | my-nextjs-app |
Sentry is the leading error tracking platform for web and mobile applications. It captures unhandled exceptions with full context, de-minifies stack traces using source maps, and groups related errors by root cause. Its release tracking and regression detection help teams ship confidently. Best used alongside infrastructure monitoring tools like Datadog for complete observability.