Automatically capture errors and performance bottlenecks with clear, actionable debugging context for your Next.js app—across client, server, and edge components.
Automatically capture errors and performance bottlenecks with clear, actionable debugging context for your Next.js app—across client, server, and edge components.
Get detailed stack traces and debugging context for every error—without having to ask for screenshots of the users console. De-minify your code while keeping source maps private and connect issues across your Next.js app. Session Replay shows exactly what led up to an issue, helping you debug hydration errors, navigation failures, layout shifts, and user frustration signals like rage clicks and dead clicks.
Trace requests from client-side interactions through RSCs, server actions, and edge functions. Get precise context down to the line of broken code to:
Pinpoint slow or failing server actions without sifting through logs
Track database queries that slow down API responses
Catch middleware failures affecting authentication and redirects
Monitor edge function timeouts impacting user experience
Sentry spots the bottlenecks that are impacting real users like:
Rendering delays from inefficient hooks and effects
Unnecessary re-renders that degrade performance
Slow API responses from server-side functions
Blocking middleware increasing response times
With Codecov, get clear insights into your Next.js app’s coverage and test performance.
Identify gaps in API route and component test coverage
Spot flaky tests causing CI/CD failures
Ensure critical functionality like authentication and routing is well-tested
Just run this command to sign up for and install Sentry.
npx @sentry/wizard@latest -i nextjs
Enable Sentry Tracing by adding the below code.
import * as Sentry from '@sentry/nextjs'; Sentry.init({ dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0', // We recommend adjusting this value in production, or using tracesSampler // for finer control tracesSampleRate: 1.0, });
Whether it's a flickering UI or missing elements, Sentry's hydration error diff tools make it easy to instantly detect and debug mismatches between server-rendered and client-rendered HTML.
Monitor response times and error rates across your Next.js API routes with automatic instrumentation.
Track execution times and errors in your edge functions with complete debugging context.
Missed database cleanups or failed API syncs can go unnoticed, leading to data inconsistencies or increased storage costs. Ensure your scheduled tasks are running on time and without errors with Sentry’s cron monitoring.
Get real-time alerts when your application is unavailable, so you can respond quickly before it impacts your users.
Sentry supports every major frontend language, framework, and library. You can browse each of them here.
You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.
Sentry doesn’t impact a web site’s performance.
If you look at the configuration options for when you initialize Sentry in your code, you’ll see there’s nothing regarding minimizing its impact on your app’s performance. This is because our team of SDK engineers already developed Sentry with this in mind.
Sentry is a listener/handler for errors that asynchronously sends out the error/event to Sentry.io. This is non-blocking. The error/event only goes out if this is an error.
Global handlers have almost no impact as well, as they are native APIs provided by the browsers.
Get started with the only application monitoring platform that empowers developers to fix application problems without compromising on velocity.
Here’s a quick look at how Sentry handles your personal information (PII).
×We collect PII about people browsing our website, users of the Sentry service, prospective customers, and people who otherwise interact with us.
What if my PII is included in data sent to Sentry by a Sentry customer (e.g., someone using Sentry to monitor their app)? In this case you have to contact the Sentry customer (e.g., the maker of the app). We do not control the data that is sent to us through the Sentry service for the purposes of application monitoring.
Am I included?We may disclose your PII to the following type of recipients:
You may have the following rights related to your PII:
If you have any questions or concerns about your privacy at Sentry, please email us at compliance@sentry.io.
If you are a California resident, see our Supplemental notice.