feat: add /sentry-debug endpoint for verification

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-03-07 19:36:27 -05:00
parent e3a1e6fb75
commit a96ed9138f

View File

@@ -252,6 +252,12 @@ async def health_check():
return {"status": "healthy"}
@app.get("/sentry-debug")
async def trigger_error():
"""Sentry verification endpoint — triggers a test error."""
division_by_zero = 1 / 0
if settings.DEBUG:
@app.get("/debug/cors")
async def debug_cors():