OTel file exporter emits no terminal telemetry when streamed prompt mode is interrupted with SIGINT
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- shell
- Lĩnh vực
- cli, observability-sre
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện prompt được truyền theo streaming nhưng bị gián đoạn bằng OTel file exporter, đồng thời kiểm tra cách CLI xử lý SIGINT và đường dẫn shutdown của OpenTelemetry exporter. Theo dõi việc hủy inference đang hoạt động, việc hoàn tất span, force-flush và shutdown có giới hạn thời gian của exporter; được xem là hoàn tất khi SIGINT đầu tiên để lại một tệp telemetry có các terminal spans bị hủy hoặc kết thúc với lỗi cùng kết quả thoát thông thường của tín hiệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-cli
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4729 ·
-
area:sessions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4712 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-cli#4638 ·
-
Expose large_output_file_path on TaskShellProgress so clients can read complete shell-task output Đang mởarea:tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#4630 · 1 bình luận ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
danielmiessler/LifeOS#2218 ·
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
technical-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
ll7/robot_sf_ll7#9560 ·
-
Update ghgrab to 2.1.0 Đang mởpackage-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100