github / github/copilot-cli

`copilot -p` does not emit OTEL telemetry even with server-managed settings overrides

未關閉
#4,169 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:non-interactive
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

Running copilot cli with -p doesn't emit telemetry with server-managed settings:

```
{
"telemetry": {
"enabled": true,
...
}
}
```

This could also contribute to sessions running under the CLI in the chat window do not show telemetry in IntelliJ:

Image

We need both of these scenarios covered with telemetry.

### Affected version

1.0.71

### Steps to reproduce the behavior

copilot -p "test"

or in IntelliJ select CLI as the harness and use the chat normally

### Expected behavior

OTEL telemetry gets emitted no matter how copilot is triggered when OTEL is forced on in managed settings.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

首先,在受管理設定中強制開啟 telemetry 的情況下重現 `copilot -p "test"`,然後將其 telemetry 初始化與 IntelliJ CLI-harness 的聊天路徑進行比較。追蹤兩個觸發器的 OTEL 設定,並驗證在啟用 override 時每種情境都會發出 telemetry。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli, observability
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。