Spaces:
Sleeping
Sleeping
Observability (Phase 6)
Structured Logs
FastAPI emits JSON logs for key actions:
search/search_erroringest_single/ingest_single_errorworkflow/workflow_error
Each log includes:
eventrequest_idtimestamp- relevant fields (query, top_k, duration_ms, etc.)
Health Metrics Endpoint
GET /api/health/metrics
Returns:
{
"status": "ok",
"timestamp": "...",
"qdrant": {
"available": true,
"collections": ["molecules", "proteins"],
"stats": { "molecules": { "points_count": 1234 } }
},
"models": {
"available": true,
"device": "cuda",
"obm_loaded": true
}
}
CI-Style Test Runner
python scripts/run_tests.py
Runs:
test_search_api.pytest_agent_api.pytest_search_filters.pytest_phase4_ui.pytest_ingestion_api.py