github / github/copilot-cli

OTel execute_tool bash span does not expose nonzero process exit outcome

オープン
#4,864 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
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
  1. Enable metadata-only OTel file export.
  2. Run a synthetic prompt that directs the shell tool to execute exactly false once.
  3. Inspect the execute_tool bash span.

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、shell ツールで合成コマンド false を実行してメタデータのみの OTel エクスポートを再現し、その後、結果として得られる execute_tool bash span を調べます。span が、process.exit.code=1 のような、内容を含まない範囲のある非ゼロのサブプロセス結果、または同等のツール結果属性を、コマンド内容を取得せずに公開していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bash
領域
observability
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。