---
url: https://kit.kambium.net/docs/cloud-sentry.md
---
# Sentry

Find errors in your hosted app without waiting for a user to report them.
Sentry captures backend errors and lets you inspect recent issues from Desktop.

Sentry is optional. Add a reporting DSN in **Cloud → Sentry** to
send hosted backend errors to your Sentry project. Local runs and tests do not
report by default.

To view recent issues on that page, set the organization, project and API
region. Enter a monitoring token and choose **Check monitoring**. Desktop uses
the token for that check. Reporting and monitoring use separate credentials.

<span id="enable-backend-reporting"></span>

::: details Reporting settings

Create or select a project directly in Sentry, then copy its DSN to `SENTRY_DSN`.
`SENTRY_ENVIRONMENT` labels events and filters Desktop's issue list.

`SENTRY_RELEASE` is an optional runtime label. For Fly deployments, set it in
Fly secrets. See [server error reporting](https://kit.kambium.net/docs/configuration.md#sentry-error-reporting)
for runtime overrides.

:::

<span id="connect-desktop-monitoring"></span>

::: details Monitoring credentials and issue filtering

| Setting | Value |
| --- | --- |
| Monitoring token | Token with `project:read` and `event:read`. Enter it in Desktop. |
| `SENTRY_ORG_SLUG` | Organization slug. |
| `SENTRY_PROJECT_SLUG` | Project slug or ID. |
| `SENTRY_ENVIRONMENT` | Optional filter; unset includes all environments. |
| `SENTRY_API_REGION` | Set to `us` or `eu` for your Sentry project. |

Desktop shows up to five unresolved issues seen in the last 24 hours. An empty
list means none matched that window and filter. A monitoring connection does not
prove the backend has sent an event. Monitoring works independently of the server.

:::
