Skip to content

Respect metered connections in Agent Host, CLI, and browser telemetry #336679

Description

Context

#336922 contains the desktop core/debugger telemetry fixes from #331685 for #297362, now split into a dedicated PR stacked on the native metered service in #331897. The additional collectors below were explicitly deferred from that consolidation and need separate metered-connection support.

Remaining paths

When telemetry is otherwise enabled, these paths do not currently receive metered-connection state:

Expected follow-up

  • Respect network.meteredConnection for these collectors, including initial-state readiness where applicable.
  • Suppress health probes, scheduled/retry sends, and shutdown sends while metered, and resume correctly when unmetered.
  • Preserve existing telemetry consent, telemetry-level restrictions, and enterprise policy behavior.
  • Add deterministic transport-level tests; do not send real telemetry during validation.

This is a follow-up for these specific VS Code-owned collectors, not a request to add completion-provider behavior or broadly change extension/provider-owned telemetry.

Activity

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

Metadata

Metadata

Labels

agent-hostIssues for the agent-host implementation (not the protocol)

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions