How I know when my app breaks: not more testing, Sentry.
Your app breaks. Who tells you?
Sentry error tracking: how I know when my app breaks, not more testing.
Tests check your code once, before it ships. Nothing checks it once it's live. Sentry does: when I stopped a project on Vercel it flagged "this website is no longer reachable", and it caught the globe in Atlaria not loading for people. I'm Manraj Sidhu, AI developer, and this is the real build.
Setup is five steps: run the wizard, add an uptime monitor, send alerts to Slack or email, upload source maps, throw a test error. Save this before you ship again. Which dev myth would you call out? "Just test it more" is mine.
Follow @manrajtalks for more of The Stack.
How to build it
This page gives you Sentry, the error-tracking tool, and what it does for your app, so you know whether the app works.
The stack
Sentry: logs every error in your app and shows where each one is happening.
Site-down alert: Sentry told me when a site had been shut down. I stopped a project on Vercel and Sentry reported "this website is no longer reachable", with the exact time the site stopped being up.
Feature-level errors: Sentry also flagged when a globe on one of my apps was not loading for people, which I would not have noticed from testing alone.
Vercel: where the app is hosted, and the platform I used to test that Sentry catches an outage.
The reason to have it: testing and making the app robust are not enough. You need a way to see your errors, or at least log them.
How to set it up
Create a free account at Sentry (sentry.io) and make a new project for your app.
Copy the connection details Sentry gives you for that project.
Ask ChatGPT (Codex) or Claude Code to add the Sentry code to your app, using those details.
Deploy the app to Vercel with the Sentry details added as environment variables in your Vercel project settings.
Set up Sentry to watch your live site address, so it can tell you when the site is no longer reachable.
Test it: stop the project on Vercel and check that Sentry reports the site as unreachable.
Open Sentry after each release and read what it has logged.
Watch out: testing your app is not a substitute for seeing errors. Do the shutdown test in step 6 on a project you can safely stop, so you know the alert works before you need it.
Prompt to build your own
You are helping me add error tracking to my web app using Sentry.
My app: <describe the app and its framework, for example a Next.js site>.
Hosting: <Vercel, or your host>.
I use: <ChatGPT (Codex) or Claude Code> and I have a Sentry account with a project already created.
Please:
1. Add the Sentry SDK to the app so unhandled errors are logged to Sentry.
2. Read the Sentry connection details from environment variables called <your variable name>, and never hard-code them.
3. Show me where to add those variables in <my host> settings.
4. Add one deliberate test error I can trigger and then remove.
5. Explain how to set up Sentry to watch <my live site address> and alert me when it is no longer reachable.
6. Give me a short checklist to test it, including stopping the deployment and confirming Sentry reports it.
Keep the changes small, explain each file you touch, and tell me what to check in Sentry afterwards.