ExternalAgentDefinition.OtelAgentId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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