--- title: Checkpoint 2026-09-30 02:51:19 UTC [3f41c4ffa5] type: checkpoint permalink: main/projects/25464650-ed5d-440e-b362-190f2852d451/checkpoint-2026-09-30-02-51-19-utc-3f41c4ffa5 stable_id: 9a4c2024-f07c-47b5-9ba1-5f9de83cf6bf scope: project memory_type: checkpoint project_id: 25464650-ed5d-440e-b362-190f2852d451 usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 status: active revision: 1 request_id: fix5-metrics-b4789fc-20260930 created_at: '2026-09-30T02:51:19.017727+00:00' updated_at: '2026-09-30T02:51:19.017727+00:00' tags: - fix-5 - feat/fix-5-metrics - ready-to-merge --- # 检查点:fix issue #5 metrics 打点(已推分支,未合 main) ## 范围 - 工作树 `e:\\code\\NixMsg-wt\\fix5` - 分支 `feat/fix-5-metrics` → `origin/feat/fix-5-metrics` - 提交 `b4789fc`(基线 `479a08e`) - issue #5;**未**合并 main;**未**关闭 issue ## 完成 - `nixmsg_connections{ws|tcp}`:broker OnSessionEstablished/OnDisconnect 末尾 Inc/Dec - `endpoints`/`deliveries_pending`/`messages_scheduled` + 写队列/哈希排队:messageLoops 每秒采样真实值 - `dispatch_to_push`/`ack` 直方图:PushPending 成功推送、Ack 成功确认时 Observe - `write_batch_commit`:store.Queue.OnBatchCommit - `errors_total`:uplink replyErr - DEVIATIONS 追加 `### fix-issue-5` - 未改 group emit / 管理锁定 / 注册 IP / fatal;避开 PublishDown 与 dissolve 回执大段 ## 验证 - `go test ./internal/metrics/ ./internal/broker/ ./internal/app/message/ ./internal/store/ ./cmd/nixmsg/ ./internal/httpx/` 通过 - 未跑全仓 task check ## 下一步 - 总控审阅后 ff-only 合 main;本线勿合 main - 与 feat/fix-3-downlink-deadlock、feat/fix-6-dissolve-receipt 合并时注意 hooks 末尾与 ack 小 diff