[release/13.4] Add coding agent telemetry detection and report copilot-cli specifically#18240
Merged
Merged
Conversation
Detect known coding agents from environment variables and include the detected agent name on Aspire CLI main telemetry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18240Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18240" |
… agents; update tests for new detection logic
joperezr
approved these changes
Jun 16, 2026
Contributor
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
This was referenced Jun 17, 2026
This was referenced Jun 17, 2026
Open
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.
Backport of #18065 and #18094 to release/13.4
/cc @DamianEdwards
Customer Impact
Aspire CLI telemetry in release/13.4 would not identify known coding agents, and Copilot CLI usage would not be reported specifically as
copilot-cli, reducing visibility into coding-agent-driven CLI usage. The telemetry records only known agent names, not environment variable values.Testing
Ran
.\restore.cmdanddotnet test --project tests\Aspire.Cli.Tests\Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class "*.AspireCliTelemetryTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true".Risk
Low. The change is localized to Aspire CLI telemetry/coding-agent detection and tests, and does not add public API.
Regression?
Unknown — please confirm.