Skip to content

Go to the docs contents

Errors (Sentry)

Your app’s exceptions, grouped by a Sentry SDK connected to while. A never-seen-before error wakes your agent.

Updated November 9, 2026.

View as Markdown

You, to your agent: Set up error tracking.

What your app receives

Your app receives these environment variables at every deployment:

VariableWhat it holds
SENTRY_DSNThe address where the Sentry SDK sends the server’s errors.
SENTRY_DSN_PUBLICThe one for an SDK running in the browser.

When to use it

Use it to group the app’s exceptions with a Sentry SDK. A new error wakes the agent.

How it works

Plug any Sentry SDK into SENTRY_DSN: errors are grouped, and a never-seen error wakes the agent.

What to know

SENTRY_DSN is an internal address, reachable without opening egress. For an SDK in the browser, use SENTRY_DSN_PUBLIC.

Guides

Connect your agent, it takes care of the rest

To paste into your agent

Read while.sh/agents, then deploy my app with while.

Copy the instructions

No account needed to try: your app is live right away. To keep it, sign in.

A project for your company? Talk to the team: hello@while.sh