Skip to content

Support managed configuration for OTLP metric temporality (delta) in managed settings #5642

Backlog

Description

@anfuerer

Describe the feature or problem you'd like to solve

Copilot CLI sends OpenTelemetry metrics with cumulative values for the whole session. Allow the temporality preference to be set via managed settings (e.g. managed-settings.json) so administrators can enforce it centrally.

Proposed solution

Summary

Copilot CLI exports OpenTelemetry metrics with cumulative temporality for the whole session. Other tools in our stack (e.g. Claude Code) and our dashboard (for example the default "Coding Agent Insights" dashboard in AWS CloudWatch) expect delta values. Delta can currently only be enabled via the environment variable OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta, which must be set in each developer's shell before launch.

Impact

Environment variables cannot be reliably enforced on managed developer machines.
The variable is lost in new terminals or when VS Code is started from the dock, so metrics become inconsistent across developers.
Our dashboard shows incorrect values for Copilot until every developer has set the variable correctly.

Request

Make the temporality preference configurable via managed settings (e.g. managed-settings.json), so administrators can enforce it centrally, as is possible for other settings. All OTEL-related confiugration settings should be managable in managed-settings.json

Example prompts or workflows

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions