feat(server): /metrics 可观测与日志上下文(F22)
- 新增 Prometheus 指标端点 /metrics(HTTP + DB + 作业统计) - request.log 绑定 requestId/actorId,避免日志难追踪 - cron/pg-boss 作业增加 metrics 计数(runs/processed) - 更新 env/runbook/README 与 v3 CSV 状态推进
这个提交包含在:
@@ -99,6 +99,10 @@ async function authPlugin(fastify) {
|
||||
roleCodes,
|
||||
permissionCodes,
|
||||
};
|
||||
|
||||
if (request.log && typeof request.log.child === "function") {
|
||||
request.log = request.log.child({ actorId: employee.id });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户