feat: add Sentry error monitoring and tracing to FastAPI backend
- Install sentry-sdk[fastapi] with auto-enabled FastAPI + Anthropic integrations - Init before app = FastAPI() with env-aware sample rates (100% dev, 20% prod) - Filter /health endpoint from traces to reduce noise - Add SENTRY_DSN to config settings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,9 @@ google-genai>=1.0.0
|
||||
pgvector>=0.3.6
|
||||
voyageai>=0.3.0
|
||||
|
||||
# Monitoring
|
||||
sentry-sdk[fastapi]>=2.54.0
|
||||
|
||||
# Utilities
|
||||
python-dotenv==1.0.1
|
||||
croniter>=2.0.0
|
||||
|
||||
Reference in New Issue
Block a user