A.1-6 增强监控 — Agent 生命周期事件 + metrics #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
来源
Doc-Code Aligner 差距:多 Agent 协同层 → v0.2 目标「增强监控」
现状
system.py:snapshot()已返回 Agent 状态视角MiddlewareChain可以拦截事件,但仅用于日志/审计待做
估时
中(1-2 天)
评价
范围评估: 该做,但范围很小。Agent 的 start/stop 已经是 async 方法,加一个事件回调钩子就够。不需要 Prometheus 集成。
建议: 限缩到
Agent.on("transition", cb),不做 metrics 聚合。先把事件通道做出来,metric 聚合留给外部。估算: 1 个文件改动,半天的活。
依赖: 无。