Skip to content

feat(gateway): expose session diagnostics#186

Open
RerankerGuo wants to merge 1 commit into
TencentCloud:mainfrom
RerankerGuo:fix/gateway-session-diagnostics
Open

feat(gateway): expose session diagnostics#186
RerankerGuo wants to merge 1 commit into
TencentCloud:mainfrom
RerankerGuo:fix/gateway-session-diagnostics

Conversation

@RerankerGuo

Copy link
Copy Markdown

Description | 描述

Add a read-only Gateway diagnostics endpoint for session and L1 pipeline observability.

GET /diagnostics/sessions returns:

  • store availability plus L0/L1 record counts when available
  • scheduler enabled/started state and queue status
  • checkpoint aggregate counters
  • per-session in-memory scheduler state, buffered message count, checkpoint runner state, and checkpoint pipeline state

The endpoint is routed through the existing Gateway auth gate, unlike /health, because it can expose session keys and operational state.

Related Issue | 关联 Issue

Fix #64

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

Additional Notes | 其他说明

Verified with npm test and npm run build using Node v24.15.0.

Signed-off-by: Ziyang Guo <121015044+RunMarshal@users.noreply.github.com>
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.

Suggestion: improve observability for session and L1 pipeline status

1 participant