Skip to content

feat: declare agent hosting mode extension telemetry field - #10973

Draft
Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/byo-aks-telemetry-contract
Draft

Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/byo-aks-telemetry-contract

Conversation

@huimiu

@huimiu Hui Miao (huimiu) commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

We need a core extension telemetry contract to count BYO AKS agent hosting runs during azd provision and azd up without coupling adoption tracking to agent.phase.completed timing telemetry. This PR declares ext.agent.hosting.mode (byo_aks on agent.hosting.selected) and updates core governance tests and shared telemetry docs; runtime emission in azure.ai.projects lands in the stacked follow-up PR.

Changes

  • Declare AgentHostingMode (ext.agent.hosting.mode, SystemMetadata / FeatureInsight, endpoint N/A) in cli/azd/extensions/telemetry/fields.go
  • Add field metadata assertions in cli/azd/extensions/telemetry/fields_test.go and cli/azd/cmd/telemetry_test.go
  • Document the agent.hosting.selected event contract, ext.agent.hosting.mode enum (byo_aks), and privacy scope in docs/reference/telemetry-data.md and docs/specs/metrics-audit/

Telemetry change

What changed: declares ext.agent.hosting.mode (byo_aks) for azure.ai.projects ext.usage spans where extension.event="agent.hosting.selected". Field registration alone emits nothing in this PR. Once the stacked azure.ai.projects PR lands, Foundry provision Deploy runs with effective agentHosting.enabled == true resolved from azure.yaml, $ref, or on-disk parameters will emit one agent.hosting.selected event with ext.agent.hosting.mode="byo_aks" before preview-gate, validation, preflight, and ARM deploy, while azd provision --preview, projects without agentHosting, enabled: false overrides, and malformed agentHosting inputs emit no agent.hosting.selected event.
Why it is needed: count BYO AKS provision attempts as a dedicated FeatureInsight adoption signal, and join on operation_Id with cmd.provision, cmd.up, or agent.phase.completed for outcomes (machine.id for distinct machines) and agent.context.resolved (ext.agent.container.mode) for container packaging without resource IDs.
Approval coverage (maintainer): pending assessment

  • Values are limited to what is needed; custom and invalid inputs are handled. Only the bounded "byo_aks" enum value is declared; emission and exclusion rules land in the stacked azure.ai.projects PR (@huimiu).
  • Field/event declarations, classification, purpose, identifier metadata, hashing rules, and affected telemetry docs are updated. No identifiers are added; hashing is not applicable to the bounded "byo_aks" enum.
  • Focused tests check emitted and excluded values, including hashes where relevant. Opt-out behavior is unchanged. Core field metadata tests are included here; runtime emission and exclusion tests land in the stacked azure.ai.projects PR (@huimiu).
  • Known affected queries, tables, reports, or exports are listed, with an owner for follow-up or migration. Existing ext.usage consumers are unaffected by the new event; maintainer to assign an analytics owner for new BYO AKS Kusto queries.
  • Code changes, metadata deployment, and downstream checks have separate statuses and owners. Core contract, governance tests, and shared docs are complete here (@huimiu); azure.ai.projects emission lands in the stacked azure.ai.projects PR (@huimiu); metadata rollout and approval assessment are pending maintainer review; production Kusto query check is pending post-release rollout (@huimiu and maintainer-assigned analytics owner).

Open questions or follow-ups: land stacked azure.ai.projects emission PR (@huimiu), maintainer approval-coverage assessment before rollout, and post-release Kusto query check (@huimiu).

@azure-pipelines

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

@github-actions github-actions Bot added the ext-projects azure.ai.projects extension label Nov 17, 2026
@huimiu
Hui Miao (huimiu) force-pushed the hui/byo-aks-telemetry-contract branch from d6435eb to 9af8682 Compare November 18, 2026 08:14
@huimiu Hui Miao (huimiu) changed the title feat: declare BYO AKS extension telemetry field feat: declare agent hosting mode extension telemetry field Nov 18, 2026
@huimiu
Hui Miao (huimiu) force-pushed the hui/byo-aks-telemetry-contract branch from 9af8682 to 8c09fe6 Compare November 20, 2026 00:07
@huimiu
Hui Miao (huimiu) force-pushed the hui/byo-aks-telemetry-contract branch from 8c09fe6 to cc881e0 Compare November 23, 2026 00:12

This branch has not been deployed

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

Labels

ext-projects azure.ai.projects extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant