OTel file exporter emits no terminal telemetry when streamed prompt mode is interrupted with SIGINT
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- shell
- 領域
- cli, observability-sre
研究方向
首先使用 OTel file exporter 重現被中斷的串流 prompt,並檢查 CLI 對 SIGINT 的處理以及 OpenTelemetry exporter 的關閉路徑。追蹤作用中推論的取消、span 完成、force-flush 和有界的 exporter 關閉;完成的標準是第一次 SIGINT 會留下包含已取消或以錯誤結束的 terminal spans 的 telemetry 檔案,以及慣例的訊號結束結果。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
Interrupting an actively streaming non-interactive prompt with SIGINT produces no OpenTelemetry file at all. There is therefore no cancelled/error terminal chat or invoke_agent span and no partial timing/token evidence.
Affected version
GitHub Copilot CLI 1.0.83 on macOS.
Steps to reproduce
- Enable the OTel file exporter and force content capture off.
- Run
copilot --prompt ... --stream on --model <available-model>with a synthetic prompt that produces a long response. - Wait until response deltas are actively streaming.
- Send SIGINT to the Copilot process.
- Inspect the configured file-export path.
This reproduced twice. In the second run, 153 assistant.message_delta JSON output records had arrived before SIGINT. The process exited by SIGINT and the configured telemetry file did not exist.
Expected behavior
On the first termination signal, Copilot should cancel the current inference, end active spans with a cancelled/error outcome, force-flush and shut down trace/metric exporters with a bounded timeout, and then preserve the conventional signal exit result. A second signal can remain a hard exit.
A downstream Collector cannot recover an active span that the producer never ended.
Privacy
The reproduction used only synthetic content and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=false. No credentials or user data are included.
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 17 小時 6 分鐘
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/copilot-cli 的其他 Issue
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4996 ·
維護者通常 1 天內回覆
-
triage
難度 1/5 1 小時以內 新手友好度 88/100
github/copilot-cli#4963 · 1 則留言 ·
維護者通常 1 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 75/100
github/copilot-cli#4932 ·
維護者通常 1 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 78/100
github/copilot-cli#4909 ·
維護者通常 1 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 76/100
github/copilot-cli#4906 ·
維護者通常 1 天內回覆
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 90/100
unixorn/awesome-zsh-plugins#2285 ·
維護者通常 1 天內回覆
-
documentation priority: low
難度 2/5 1-3 小時 新手友好度 88/100
snapotter-hq/SnapOtter#1863 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
nasa-jpl/bespokebpv7#51 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
area/rules
難度 2/5 1-3 小時 新手友好度 88/100
usnistgov/macos_security#836 ·
維護者通常 1 天內回覆