Skip to content

Conversation

@tukuaiai
Copy link
Owner

@tukuaiai tukuaiai commented Jan 9, 2026

变更摘要

订单簿采集器增强监控能力:

代码变更 (order_book.py)

  • 延迟监控: 计算 receipt_ts - event_ts,统计平均/最大延迟
  • 心跳检测: 30秒无数据告警
  • 高延迟告警: 延迟超过 5 秒时输出警告
  • 统计日志增加 delay_avg/delay_max 字段

文档更新 (ORDER_BOOK_AUDIT.md)

  • 新增监控指标说明
  • 新增健康检查章节
  • 更新变更日志

风险评估

低风险 - 仅增加监控逻辑,不影响核心写入流程

…er book collector

- Add delay monitoring: track avg/max delay from event_ts to receipt_ts
- Add heartbeat detection: warn if no data received for 30+ seconds
- Add high latency warning: alert when delay exceeds 5 seconds
- Update stats logging to include delay metrics
- Update audit doc with new monitoring features
@tukuaiai tukuaiai merged commit 5774997 into main Jan 9, 2026
1 of 2 checks passed
@tukuaiai tukuaiai deleted the fix/order-book-monitoring branch January 9, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants