You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support managed configuration for OTLP metric temporality (delta) in managed settings #5642
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
Activity