Azure / Azure/azure-dev

Record hosted agent deployment mode telemetry

Open
#9,230 0 comments 0 reactions 1 assignee Claimed by @huimiu View on GitHub
area/extensions area/telemetry ext-agents
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

## Goal

Record the resolved hosted-agent deployment path in azd telemetry.

## Rationale

Hosted agents can upload code, build a container image, or use a user-provided prebuilt image. `project.service.languages` describes the manifest language but does not identify which deployment path actually ran, which limits adoption and troubleshooting insights.

## Scope

- Define `agent.deploy.mode` as a `SystemMetadata` field for `FeatureInsight`.
- Emit only the fixed values `code`, `container`, and `byo_image`.
- Have the extension label its existing package or publish artifacts after resolving the lifecycle path.
- Have azd core validate the value and record it on its active recording span.
- Document the field and add focused coverage for each mode.

## Acceptance criteria

- The three supported paths record the corresponding fixed enum.
- User-provided image references, registry names, repositories, and tags are never emitted.
- The extension remains independently buildable against its released azd SDK dependency.
- The field, schema, and telemetry matrix remain aligned.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.