Sentry
Catches crashes in your app and shows the exact line, user and steps.
Pick it when You want to hear about errors the moment they happen, with the details to fix them.
Skip it if You want to track business numbers or server health; it is for errors first.
- Setup in Next.js takes a few minutes
- Groups repeats into one issue
- Emails or messages you on new errors
- Can get noisy until you filter
- Volume-based pricing
- Quick to set up
- Cheap while small
- Easy to leave
- Room to grow
PriceFree tier, then by number of events
How to connect it
- Create a project in Sentry and copy its DSN, the address your app sends errors to.
- Run the Next.js setup wizard, which adds config files.
- Set the DSN in your environment.
- Trigger a test error, then add an alert rule to message you.
NEXT_PUBLIC_SENTRY_DSNSENTRY_AUTH_TOKEN
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 0.1, // watch a tenth of requests for speed
});
// anywhere in your code
Sentry.captureException(new Error("checkout failed"));