ExternalAgentDefinition.OtelAgentId Property

Definition

The OpenTelemetry agent identifier used to attribute customer-emitted spans to this Foundry agent. Spans must include the attribute gen_ai.agent.id = <otel_agent_id> to appear under this registration. Defaults to the top-level agent name when omitted. Provide an explicit value only for migration scenarios where the running external agent already emits a stable id that differs from the Foundry agent name. The resolved value is always echoed on read.

public string OtelAgentId { get; set; }
member this.OtelAgentId : string with get, set
Public Property OtelAgentId As String

Property Value

Applies to