Sentry for Next.js

•
19
•

Automates the installation and configuration of Sentry's full-stack observability suite for Next.js applications.

This skill provides a guided, opinionated approach to integrating Sentry into Next.js projects (version 13+), covering the App Router, Pages Router, and all three runtimes: Client, Node.js, and Edge. It streamlines the setup of error monitoring, performance tracing, session replays, and advanced features like AI monitoring and automated source map uploads, ensuring production-grade observability with minimal manual configuration by managing complex files like instrumentation.ts and next.config.js.

主要功能

0119 GitHub stars
02Automated Sentry Wizard integration for interactive setup
03Support for App Router (global-error.tsx) and Pages Router (_error.tsx)
04Automated source map upload configuration for production debugging
05Advanced monitoring for AI/LLM calls, Crons, and Session Replay
06Full runtime coverage (Browser, Node.js Server, and Edge)

使用场景

01Implementing server-side request tracing for Next.js Server Actions and API routes
02Adding full-stack error tracking and tracing to a new Next.js 14+ project
03Configuring Session Replay to identify and fix frontend bugs in user-facing apps