Repository navigation
{Core} Add agent context to command telemetry - #34465
Open
Tom Gamble (gambtho) wants to merge 1 commit into
Open
Tom Gamble (gambtho) wants to merge 1 commit into
Tom Gamble (gambtho) wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The new Agent telemetry field requires telemetry-owner confirmation of privacy approval and backend schema/ingestion allowlisting, which remain unverified and cannot be established by client-side tests.
No open issues 🎉
What changed in this PR
Adds a name-only Agent property to Azure CLI command telemetry, addressing #34403 by tracking advertised agent context separately from the existing AgenticSession authentication indicator.
Changes:
- Detects canonical agent names from allowlisted environment signals, with explicit precedence and
unknown/multipleoutcomes. - Adds tests for detection, payload handling, failure isolation, and existing telemetry consent controls.
- Documents privacy boundaries and interpretation limits; service ingestion allowlisting and privacy review remain pending.
| File | Description |
|---|---|
src/azure-cli-core/azure/cli/core/tests/test_telemetry.py |
Adds agent detection, payload lifecycle, and consent tests. |
src/azure-cli-core/azure/cli/core/telemetry.py |
Detects agent context and adds it to standard telemetry properties. |
doc/telemetry/README.md |
Documents signals, precedence, privacy safeguards, and analytics limitations. |
Review effort: Balanced
Contributor
|
Thank you for your contribution Tom Gamble (@gambtho)! We will review the pull request and get back to you soon. |
Contributor
|
Hi Tom Gamble (@gambtho), |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ️✔️ All clear
Related command
All
azcommands.Description
Adds a name-only
Agentproperty to command telemetry so recognized agent contexts can be measured separately fromAgenticSession, which describes an authentication path.claude-code,copilot-cli,copilot-vscode,codex,cursor,gemini-cli,unknownandmultiple.unknowndoesn't mean human use.Related #34403. Telemetry owners: please confirm schema/ingestion allowlisting and the required privacy review.
Testing Guide
set showbut getsset show subscription; the same failure reproduces on the unchanged base.