Skip to content

feat: add new user agent: foundry_agent_canvas#9206

Open
qinezh wants to merge 1 commit into
Azure:mainfrom
qinezh:qinezh/foundry-agent-canvas-telemetry
Open

feat: add new user agent: foundry_agent_canvas#9206
qinezh wants to merge 1 commit into
Azure:mainfrom
qinezh:qinezh/foundry-agent-canvas-telemetry

Conversation

@qinezh

@qinezh qinezh commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • recognize foundry_agent_canvas in AZURE_DEV_USER_AGENT
  • append Foundry Agent Canvas to the existing execution.environment base value
  • extend unit and functional telemetry verification and document the modifier

Foundry Agent Canvas is a GitHub Copilot App Extension that helps developers create, configure, test, and deploy a hosted agent. It’s already available in the awesome-copilot marketplace. It uses the azd command for some user actions, and we’d like to track usage of the azd command from Foundry Agent Canvas.

Fix #9207

Copilot AI review requested due to automatic review settings July 20, 2026 08:33
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
7 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution @qinezh! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Foundry Agent Canvas attribution to azd execution-environment telemetry.

Changes:

  • Detects foundry_agent_canvas in the user agent.
  • Adds unit and functional verification.
  • Documents the telemetry modifier.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/reference/telemetry-data.md Documents the modifier.
cli/azd/test/functional/telemetry_test.go Verifies emitted telemetry.
cli/azd/internal/tracing/resource/resource_test.go Adds modifier unit tests.
cli/azd/internal/tracing/resource/exec_environment.go Detects the user-agent token.
cli/azd/internal/tracing/fields/fields.go Defines the modifier value.

Comment thread cli/azd/internal/tracing/fields/fields.go
@qinezh qinezh changed the title feat: add Foundry Agent Canvas telemetry attribution feat: add new user agent: foundry_agent_canvas Jul 20, 2026

@jongio jongio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follows the established modifier pattern exactly, with matching unit and functional tests plus a doc update. The append order in the test lines up with the detection order in execEnvModifiers.

On the bot's canonical-schema comment: your won't fix is right. telemetry-schema.md describes execution.environment only as CI system detection and does not enumerate the existing modifiers, so there is nothing to sync here.

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

Labels

customer-reported identify a customer issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identify azd runs from Foundry Agent Canvas

4 participants