Skip to content

OTel telemetry support for Copilot CLI (parity with Claude Code) #2471

@kewinremy

Description

@kewinremy

Describe the feature or problem you'd like to solve

Telemetry of copilot CLI agent

Proposed solution

Feature Request: OpenTelemetry observability support

Claude Code ships full OTel support (CLAUDE_CODE_ENABLE_TELEMETRY) with:

  • Metrics: token.usage, cost.usage, session.count, lines_of_code.count, commit.count, active_time.total
  • Events via OTLP logs: user_prompt, tool_result, api_request — all correlated by prompt.id
  • Exporters: OTLP (gRPC/HTTP), Prometheus, console
  • Enterprise: managed settings, dynamic auth headers, multi-team OTEL_RESOURCE_ATTRIBUTES

Copilot CLI currently only exposes /usage and /context in-session. For teams migrating from Claude Code or running autonomous agent workflows (fleet, delegate, headless), this is a
significant gap.

Example prompts or workflows

The more autonomous the agent, the greater the value it delivers. Letting agents run fully autonomously — whether in the terminal or in the cloud — would be a significant force multiplier: I could still review the full execution history after the fact to diagnose any issues, misconfigurations, or prompt errors, without needing to supervise every step in real time.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions