Skip to content

Add OpenTelemetry / session metrics export #696

@PureWeen

Description

@PureWeen

Summary

The Copilot CLI supports OpenTelemetry for traces and metrics. PolyPilot could export session metrics for observability dashboards.

Current CLI Support

The CLI emits OTel traces and metrics for session activity (tool calls, token usage, duration). This is visible in the CLI's public help and configuration.

Proposed Implementation

  1. Metrics export — expose session metrics (tokens, tool calls, duration) via OTel
  2. Dashboard integration — optional export to Grafana, Datadog, etc.
  3. In-app metrics — lightweight metrics view within PolyPilot

Priority: 🟢 LOW

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions