feat: Sentry in the API, the worker, the Site and the Kanban (off until the DSNs are set)
app/observability.py starts sentry-sdk for the API and the worker when SENTRY_DSN_API is set, with send_default_pii off and a scrub that strips cookies, tokens, bodies, CPF/CNPJ and e-mails. The browser loads the official Sentry bundle from our own origin (web/vendor, provenance in its README) and starts with SENTRY_DSN_WEB from /api/session or /api/operator/me; every failed API answer the customer or the team gets is reported with its path, status and message, never the request body. The CSP allows Blyzer's Sentry ingest host. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,11 @@ BACKUP_SECRET_ACCESS_KEY=TBD
|
||||
BACKUP_AGE_RECIPIENT=age1...
|
||||
BACKUP_HOUR=3
|
||||
|
||||
# Sentry: empty DSNs keep it off; the environment defaults to production.
|
||||
SENTRY_DSN_API=
|
||||
SENTRY_DSN_WEB=
|
||||
SENTRY_ENVIRONMENT=
|
||||
|
||||
# Names of external Portainer/Docker Swarm secrets, never their values.
|
||||
DATABASE_URL_SECRET=TBD
|
||||
DATABASE_ADMIN_URL_SECRET=TBD
|
||||
|
||||
Reference in New Issue
Block a user