OTel file exporter emits no terminal telemetry when streamed prompt mode is interrupted with SIGINT

Aberta
#4,861 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
shell

Direção de pesquisa

Comece reproduzindo o prompt transmitido em streaming que foi interrompido com o OTel file exporter e inspecione o tratamento de SIGINT da CLI e o caminho de shutdown do OpenTelemetry exporter. Rastreie o cancelamento da inferência ativa, a conclusão do span, o force-flush e o shutdown limitado do exporter; considera-se concluído quando o primeiro SIGINT deixa um arquivo de telemetria com terminal spans cancelados ou encerrados com erro e o resultado de saída convencional do sinal.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

triage
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
  1. Enable the OTel file exporter and force content capture off.
  2. Run copilot --prompt ... --stream on --model <available-model> with a synthetic prompt that produces a long response.
  3. Wait until response deltas are actively streaming.
  4. Send SIGINT to the Copilot process.
  5. 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.

Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de github/copilot-cli

Todas as issues de github/copilot-cli

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.