feat(server): /metrics 可观测与日志上下文(F22)

- 新增 Prometheus 指标端点 /metrics(HTTP + DB + 作业统计)
- request.log 绑定 requestId/actorId,避免日志难追踪
- cron/pg-boss 作业增加 metrics 计数(runs/processed)
- 更新 env/runbook/README 与 v3 CSV 状态推进
这个提交包含在:
2026-02-09 20:30:41 +08:00
父节点 55924c8ff8
当前提交 6ecebf8ad6
共修改 17 个文件,包含 353 行新增和 25 行删除
+2
查看文件
@@ -145,11 +145,13 @@ cd /home/shunli/Projects/hyb-oa/server
```bash
curl -fsS http://127.0.0.1:3000/health
curl -fsS http://127.0.0.1:3000/ready
curl -fsS http://127.0.0.1:3000/metrics | head
```
说明:
- `/health`:liveness(不查 DB)
- `/ready`:readiness(`SELECT 1` 探活 DB,失败返回 503)
- `/metrics`:Prometheus 指标(可通过 `METRICS_ENABLED=false` 关闭)
---