Skip to content

Sentry

Enable backend error monitoring with SENTRY_DSN.

1 min read

Overview

Sentry is optional. To enable error monitoring, set SENTRY_DSN in your env (get the DSN from sentry.io → Project Settings → SDK Setup → Client Keys). If unset, Sentry stays disabled.

Steps

Create a Sentry project and copy the DSN

Create a project at sentry.io and copy the DSN for the backend.

Set environment variables

SENTRY_DSN=
SENTRY_ENABLED=true

Restart the backend

Restart the backend process so the new values are loaded.