Frames tool calls leave no tool name in traces or the audit log
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go
- 领域
- backend, observability
调研方向
Start with internal/frames/framesmcp/server.go and the tracing setup in internal/telemetry/telemetry.go; compare the call flow with connector audit recording in internal/connectors/broker/record.go. Add tracing for the Frames tool call and preserve trace context in the Frames leg; the issue leaves the audit policy question open. Done when traces identify the tool and show the Frames call timing, with an audit decision documented.
由索引模型根据 Issue 内容生成。
描述
On the powershift demo cluster I proved that Home chat answers from a Frame, and the only part I couldn't show from the platform side was which Frames tool ran. Tempo has one span per call, POST /frames/mcp from service javo, status 200, and nothing under it. The gateway log has agent_token.issued with service: frames and nothing after. To show get_frame ran I had to fall back to the agent's own screen.
Connector calls don't have this gap. The broker writes a connector.call audit row per call with the tool, mode, outcome and policy decision (internal/connectors/broker/record.go:43, auditRow at :89). Frames calls go through framesmcp and write nothing on success.
What I see on main (e493830):
- The only span is the server span from
otelhttp.NewHandler(h, "javo", ...)(internal/telemetry/telemetry.go:65), named for the route, so every Frames call looks the same. forwardreads the tool name fromreq.Params.Name(internal/frames/framesmcp/server.go:102) but doesn't put it anywhere.- The Frames leg runs on
context.WithTimeout(context.Background(), ...)(server.go:124). The comment explains why the request's values are dropped. A side effect is that the trace context goes with them, and the transport isn't instrumented anyway, so the call to Frames has no span of its own and Frames' latency can't be told apart from ours.
We should:
- Add the tool name to the span, as an attribute on the server span or on a child span around
session.CallTool, which is the better fit since it also gives the Frames leg its own timing. - Carry the span context into
legwithout the other request values, e.g.trace.ContextWithSpanContext(context.Background(), trace.SpanContextFromContext(ctx)).
We need to work out whether Frames reads should also get an audit row the way connector reads do. They're read-only and the Frames token is the person's own, so maybe not, but today there's no record of which Frames an agent read on whose behalf.
- 主要语言
- Go
- 星标
- 5
- 派生
- 0
- 平均合并
- 21 小时 13 分钟
- 30 天内合并 PR
- 53
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nebari-dev/tapas 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
nebari-dev/tapas#124 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nebari-dev/tapas#121 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
nebari-dev/tapas#32 ·
维护者通常 1 天内回复
-
Suggest saving a memory when a chat message holds something worth remembering可能已有人在做 @jbouder 今天认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
nebari-dev/tapas#137 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 54/100
nebari-dev/tapas#136 ·
维护者通常 1 天内回复
相似的 Issue
-
area: pipeline priority: low type: bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#8335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)可能已有人在做 @szluyu99 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100