The tradein GlitchTip init was barebones (dsn/environment/traces/pii only) — no integrations, so FastAPI request errors and logged ERRORs were not auto-captured. Enrich it so real error monitoring works once GLITCHTIP_DSN is set: - integrations: Starlette, FastApi (request errors), SQLAlchemy, Httpx (breadcrumbs), Logging(level=INFO, event_level=ERROR → logger.error events) - release tag (GIT_SHA / SENTRY_RELEASE / "unknown") - before_send=scrub_pii_event — redacts consumer PII (client_name/phone/email) from error event bodies (request.data / extra / contexts), beyond what send_default_pii=False covers - NO CeleryIntegration (prod runs no celery worker; in-app scheduler) Guard preserved: full no-op while GLITCHTIP_DSN is empty (current prod) → safe to deploy now; activates when an operator sets the DSN. Closes #396
0 lines
Python
0 lines
Python