POC instrumentation: structured logging, real health checks, inference timing #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add the minimum instrumentation needed to debug UAT smoke tests by hand. No new infrastructure — config and a few log lines only.
Scope (POC required)
GET /api/healthmust check database connectivity and image-volume writability, not just process liveness.LOG_LEVELenv var, defaultinfo; flip todebugonly while actively tuning.sync_log(Woo publish attempts, payload hashes) andinference_logare actually written and queryable.Non-goals
No metrics endpoint, no alerting, no tracing, no error-tracking service. Those land in the V1 issue.
Acceptance
Doc changes applied:
db_reachable,volume_writable,statuscan bedegraded, returns non-200 on DB/volume failuremodel,latency_ms,confidence_scorecolumnsTest cases needed once implementation exists:
Verified in main @
0c00d25: health endpoint (app.py:156), request_id threading (:31-48), LOG_LEVEL (:57), inference latency logging (inference.py:337,508), inference_log written. Done.