OTel execute_tool bash span does not expose nonzero process exit outcome
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、shell ツールで合成コマンド false を実行してメタデータのみの OTel エクスポートを再現し、その後、結果として得られる execute_tool bash span を調べます。span が、process.exit.code=1 のような、内容を含まない範囲のある非ゼロのサブプロセス結果、または同等のツール結果属性を、コマンド内容を取得せずに公開していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- bash
- 領域
- observability
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100