# Sentry Integration DocuElevate ships with first-class support for [Sentry](https://sentry.io) — an open-source observability platform that provides real-time error tracking and performance monitoring. When a **Sentry DSN** is configured, every unhandled exception in the FastAPI web process and Celery worker is automatically captured and sent to your Sentry project. The **Sentry Browser SDK** is also injected into every rendered page, capturing client-side JavaScript errors, browser performance transactions, and (optionally) session replays. Together these give you full-stack, end-to-end visibility into your deployment. --- ## Quick Start 1. **Create a Sentry project** at (or your self-hosted Sentry instance). Choose the **Python** platform (the same project and DSN are used for both the server and browser SDKs). 2. Copy the **DSN** from *Project → Settings → Client Keys (DSN)*. It looks like: ``` https://@o.ingest.sentry.io/ ``` 3. Set the DSN in your environment **or** via the **Settings → Observability** section of the DocuElevate admin UI: ```bash SENTRY_DSN=https://@o.ingest.sentry.io/ ``` 4. Restart DocuElevate. Sentry initialises automatically on startup — you will see a log line confirming activation. The Sentry Browser SDK `