Spaces:
Runtime error
Runtime error
| """Monitoring module for metrics and health checks.""" | |
| from app.monitoring.metrics import ( | |
| http_requests_total, | |
| http_request_duration_seconds, | |
| db_query_duration_seconds, | |
| db_connections_active, | |
| celery_tasks_total, | |
| celery_task_duration_seconds, | |
| celery_active_tasks, | |
| line_api_calls_total, | |
| line_api_duration_seconds, | |
| ai_requests_total, | |
| ai_tokens_used, | |
| ai_request_duration_seconds, | |
| scraping_jobs_total, | |
| scraping_duration_seconds, | |
| active_users, | |
| line_users_total, | |
| conversations_total, | |
| app_info, | |
| MetricsMiddleware, | |
| track_db_query, | |
| track_celery_task, | |
| ) | |
| __all__ = [ | |
| "http_requests_total", | |
| "http_request_duration_seconds", | |
| "db_query_duration_seconds", | |
| "db_connections_active", | |
| "celery_tasks_total", | |
| "celery_task_duration_seconds", | |
| "celery_active_tasks", | |
| "line_api_calls_total", | |
| "line_api_duration_seconds", | |
| "ai_requests_total", | |
| "ai_tokens_used", | |
| "ai_request_duration_seconds", | |
| "scraping_jobs_total", | |
| "scraping_duration_seconds", | |
| "active_users", | |
| "line_users_total", | |
| "conversations_total", | |
| "app_info", | |
| "MetricsMiddleware", | |
| "track_db_query", | |
| "track_celery_task", | |
| ] |