Skip to content

azure.ai.agents - Fix correlation id header propagation in agent_api #6316

Description

@JeffreyCA

Currently, azsdk. NewMsCorrelationPolicy() is configured in the agent_api pipeline (cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/operations.go), but the X-Ms-Correlation-Request-Id header is not included in outgoing requests. This is likely because the tracing span/context information is not being propagated correctly from azd core to the extension, so the policy never sees a valid span ID.

Tasks:

  • Investigate how context (and span/trace IDs) can be propagated across the CLI core and the extension boundary to ensure correlation ID header is set
  • Ensure application of azsdk.NewMsCorrelationPolicy works as intended
  • Document findings or required core/extension changes for other extension authors

See MsCorrelationPolicy source for reference.

Metadata

Metadata

Assignees

Labels

area/telemetryTelemetry, tracing, observabilityext-agentsazure.ai.agents extension

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions