OTel execute_tool bash span does not expose nonzero process exit outcome
還沒有人認領這個 Issue。
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
Describe the observability gap
When the shell tool successfully launches the synthetic command false, the resulting execute_tool bash span has status code 0 and no exit-code, error, result, or outcome attribute. Consumers cannot distinguish exit 0 from a nonzero command outcome in metadata-only telemetry.
This is distinct from a tool invocation failure: reading a guaranteed nonexistent synthetic path correctly produced an execute_tool view span with error status, error.type=failure, and an exception event.
Affected version
GitHub Copilot CLI 1.0.83 on macOS.
Steps to reproduce
- Enable metadata-only OTel file export.
- Run a synthetic prompt that directs the shell tool to execute exactly
falseonce. - Inspect the
execute_tool bashspan.
The tool execution output reports completion, while the span contains no metadata representing the subprocess's nonzero exit.
Expected behavior
It is reasonable for the tool invocation itself to be considered operationally successful, but metadata-only telemetry should expose a bounded, content-free command outcome such as process.exit.code=1 and/or a Copilot tool outcome attribute. The span status policy can remain separate from the subprocess exit status.
Privacy
The command is synthetic and harmless. Content capture was disabled; no command output, paths, repository data, or credentials are included.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先使用 shell 工具執行合成命令 false,重現僅包含中繼資料的 OTel 匯出,接著檢查產生的 execute_tool bash span。完成的標準是:該 span 暴露一個有界且不含內容的非零子程序結果,例如 process.exit.code=1,或等效的工具結果屬性,同時不擷取命令內容。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- bash
- 領域
- observability
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100