feat: 全链路追踪系统 — ai-core追踪事件 + ethend管道视图

ai-core:
- 新增 TraceEvent 内存环形缓冲区(200条)
- GET /api/v1/trace/events 端点(支持session_id过滤)
- 预置 trace.go 追踪事件定义

ethend:
- trace/recent 聚合 platform-bridge消息日志 + ai-core追踪事件
- 消息按管线分组: msg_received→llm_call→tool_call→msg_sent
- 前端管线卡片视图: 每条消息显示完整处理步骤

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-23 19:11:55 +08:00
parent a8fa64325d
commit a47eeab808
4 changed files with 151 additions and 8 deletions
+3
View File
@@ -426,6 +426,9 @@ func main() {
// 健康检查与对话API的HTTP mux
mux := http.NewServeMux()
// 注册全链路追踪事件端点
registerTraceEndpoint(mux)
// 初始化子会话管理器
subManager := subsession.NewManager(chatAdapter)