Skip to content

Error tracking, health checks and uptime alerts

Know about errors and outages before your users tell you: error tracking, a health endpoint and alerts.

  • Free, no sign-up
  • 45 to 90 minutes with an agent
  • By Devvrat Hans
  • Version 1.0, updated Oct 26, 2026

1Your site and stack

Optional. The prompt adapts as you type; leave a field blank and the agent works it out.

2Copy it into your agent

error-tracking-uptime.md62 lines, about 859 tokens

Paste into any coding agent: Claude Code, Cursor, Codex, Copilot, Windsurf or Cline.

# Error tracking, health checks and uptime alerts

On launch day, the worst way to learn the production site is broken is from a comment under the launch post. Make failures visible: errors captured with enough context to fix them, a health endpoint an uptime monitor can watch, and alerts that reach me.

Site: not given. Find the production URL in the project config, or ask me.

## Ground rules

1. Read before you write. Explore the parts of the codebase this job touches and tell me what is already in place.
2. Plan, then stop. Give me a numbered plan: what you will change, in which files, and why. Wait for my approval before editing anything.
3. Fix things at their source (the shared layout, the config, the generator), not with one-off patches page by page.
4. Keep the project's conventions: its framework APIs, file layout, naming and code style. Add no new dependency without asking.
5. Where something is already done well, say so and leave it alone.

## You will not

- Edit `.env` files, secrets or API keys, or print their values.
- Deploy, push, merge or publish anything.
- Delete data, or run migrations or scripts against a production database.
- Add tracking, third-party scripts or links to any site I did not ask for.
- Change copy, design or behaviour that this job does not need.
- Add a paid monitoring service without asking.
- Send personal data or secrets to an error tracker.

## Your stack

- Framework: Work out the framework, router and build output from the project files (package.json, lockfiles, framework config) before planning, and say which you found.
- Host: Work out where the site is hosted from the config files (vercel.json, netlify.toml, wrangler config, Dockerfile, fly.toml) and say which you found.

## Steps

### 1. See what exists

Find any error tracking, logging, health route or monitoring already in place, on the server and in the browser. Note where errors are swallowed (empty catch blocks, failed fetches with no message).

### 2. Capture errors with context

Use the existing error tracking, or propose one (Sentry, Highlight, the host's own) for me to choose; do not add a service without asking. Capture unhandled server errors and browser errors with the route, release version and a request id, and never send passwords, tokens or full card numbers. Replace silent catch blocks on important paths with a log and a user-facing message.

### 3. A health endpoint

Add `/api/health` (or the framework's equivalent) that returns 200 when the app can serve requests and reach its database, and 503 otherwise, quickly and without exposing internals.

### 4. Alerts and a runbook

Write down how to point a free uptime monitor at the homepage and the health endpoint, with alerts to email or chat. Add a short section to the docs: where to read logs and errors, and what to check first when the site is down.

## Done means

- [ ] Server and browser errors are captured with route, release and request id, without secrets.
- [ ] No silent catch block remains on sign-up, checkout or the main pages.
- [ ] A health endpoint answers 200 or 503 quickly.
- [ ] I know how to set up uptime alerts, and the docs say where to look when things break.

## Report back

When you finish, give me:

- what you changed, file by file;
- anything you skipped, and why;
- anything I must do by hand (DNS records, dashboards, accounts, deploys);
- how to check each change on the live site.

One-line version

For agents that can read a URL. It fetches this prompt with your settings applied.

Read https://abacklaunch.com/prompts/error-tracking-uptime.md and follow it for this project.

3Check the result

When the changes are live, run these free checks. Add your site URL above and each one opens already running on it.

This prompt will not

  • Edit .env files, secrets or API keys, or print their values.
  • Deploy, push, merge or publish anything.
  • Delete data, or run migrations or scripts against a production database.
  • Add tracking, third-party scripts or links to any site I did not ask for.
  • Change copy, design or behaviour that this job does not need.
  • Add a paid monitoring service without asking.
  • Send personal data or secrets to an error tracker.

It reads your code first, shows you a plan, and waits for your approval before it changes anything.

What you get

  • Errors captured with the context to fix them
  • A health endpoint for uptime monitors
  • Steps for uptime alerts and a short runbook

How to use this prompt

  1. 1

    Describe your stack

    Add your site, framework and host. The prompt adapts; blank fields are left for the agent to work out.

  2. 2

    Paste it into your agent

    Open your project in Claude Code, Cursor, Codex, Copilot, Windsurf or Cline, and paste the prompt or the one-line version.

  3. 3

    Approve the plan

    The agent reads your code, shows you a plan with the files it will touch, and waits. Change anything you disagree with.

  4. 4

    Check the result

    When the changes are live, run the free checks below on your site to confirm each fix.

What the agent does

On launch day, the worst way to learn the production site is broken is from a comment under the launch post. Make failures visible: errors captured with enough context to fix them, a health endpoint an uptime monitor can watch, and alerts that reach me.

  1. 1. See what exists

    Find any error tracking, logging, health route or monitoring already in place, on the server and in the browser. Note where errors are swallowed (empty catch blocks, failed fetches with no message).

  2. 2. Capture errors with context

    Use the existing error tracking, or propose one (Sentry, Highlight, the host's own) for me to choose; do not add a service without asking. Capture unhandled server errors and browser errors with the route, release version and a request id, and never send passwords, tokens or full card numbers. Replace silent catch blocks on important paths with a log and a user-facing message.

  3. 3. A health endpoint

    Add /api/health (or the framework's equivalent) that returns 200 when the app can serve requests and reach its database, and 503 otherwise, quickly and without exposing internals.

  4. 4. Alerts and a runbook

    Write down how to point a free uptime monitor at the homepage and the health endpoint, with alerts to email or chat. Add a short section to the docs: where to read logs and errors, and what to check first when the site is down.

Done means

  • Server and browser errors are captured with route, release and request id, without secrets.
  • No silent catch block remains on sign-up, checkout or the main pages.
  • A health endpoint answers 200 or 503 quickly.
  • I know how to set up uptime alerts, and the docs say where to look when things break.

Questions

Which error tracker should I use?

Sentry is the common choice and has a free tier; your host may include error logging already. The prompt has the agent propose options and wait for your choice.

What should a health endpoint check?

That the app can serve a request and reach its main dependencies, usually the database, quickly. It should not run heavy queries or reveal versions and stack traces.

How often should an uptime monitor check?

Every one to five minutes is typical. For launch day, a one-minute check on the homepage and the health endpoint catches problems fast.

Does this prompt add links to Aback Launch to my site?

No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.

Which coding agents does it work with?

Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.

Is it safe to run on my real codebase?

The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.

Changelog

  • v1.0First version.

Launch your startup on Aback Launch

Get a launch page that search engines and AI assistants can read, a place in the weekly launch list, and a review by a real person. Free to join.