- SDK: Next.js, Node.js, or the browser. Sends errors with stack traces.
- Log drain: Vercel, Railway, Render, and other hosts. No code changes.
- OpenTelemetry: any language with an OTLP exporter, including Python, Go, and Rust.
- Coding agent: copy one prompt into your coding agent, and it does the setup. See Set up with a coding agent.
Create an account
- Open app.squasher.ai/signup.
- Enter your email and select Create account.
- Open the sign-in link that Squasher sends to your email. There is no password.
Create your organization and project
After your first sign-in, Squasher asks for three things:- An organization name, for example your company.
- A project name, for example the service you want to monitor.
- A platform. This one is optional.
Create an ingest key
On the Setup page of your project:- Under 1. Create an ingest key, select Create ingest key. Squasher shows the key only once.
- Save the key in your secret store as
SQUASHER_API_KEY. - Under 2. Connect your application, select Manual. Save the Project ID as
SQUASHER_PROJECT_ID.
Connect your app
- Next.js
- Node.js
- Browser
- Log drains
- OpenTelemetry
1
Install the SDK
SQUASHER_API_KEY and SQUASHER_PROJECT_ID to .env.local.2
Create instrumentation.ts
Add this file to your project root, or to The SDK runs on the Node.js runtime only. It does not capture errors on the Edge runtime.
src/ if you use a src folder.instrumentation.ts
3
Send a test error
Create a route that throws, then open For middleware, Server Components, and the browser, see the Next.js SDK.
/api/squasher-test once.app/api/squasher-test/route.ts
See your first issue
- On the Setup page, under 3. Verify a signal, select Check again. When Squasher finds an event from the last 24 hours, the page shows Recent event received.
- Select Issues in the sidebar. Your test error is at the top of the list.
- Open the issue to see its event count, when it was first and last seen, and the AI triage summary.
production environment. To triage your test
error, open the issue and select Run triage in the Squasher triage card. If the error does not appear, see
Troubleshooting.
Next steps
Set up notifications
Send incidents to Slack, PagerDuty, email, or Telegram.
Read AI triage
Learn what the triage summary tells you.
Add uptime monitors
Check your endpoints and open incidents when they fail.
Connect GitHub
Link a repository so that auto-fix can open pull requests.