- Add app/health.py with HealthChecker and MetricsCollector classes - Implement composite /health endpoint checking DB and HTTP client - Add /metrics endpoint with Prometheus exposition format - Add webhook request metrics (counters, histograms, gauges) - Create app/http_client.py for shared AsyncClient management - Update app/main.py lifespan to init/close HTTP client - Add comprehensive tests in tests/test_health.py This enables proper observability with health checks and metrics for monitoring system status and webhook processing performance. |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| services | ||
| utils | ||
| __init__.py | ||
| admin.py | ||
| db.py | ||
| health.py | ||
| http_client.py | ||
| logging.py | ||
| main.py | ||
| models.py | ||
| templates.py | ||