Merging package updates from feature branch.

This commit is contained in:
alliscode
2026-04-20 11:00:38 -07:00
3 changed files with 12 additions and 5 deletions
@@ -187,6 +187,13 @@ public static class FoundryHostingExtensions
return endpoints;
}
/// <summary>
/// The ActivitySource name for the Responses hosting pipeline.
/// Matches the value previously exposed by <c>AgentHostTelemetry.ResponsesSourceName</c>
/// in <c>Azure.AI.AgentServer.Core</c>.
/// </summary>
private const string ResponsesSourceName = "Azure.AI.AgentServer.Responses";
/// <summary>
/// Wraps <paramref name="agent"/> with <see cref="OpenTelemetryAgent"/> instrumentation
/// so that agent invocations emit spans into the pipeline registered by
@@ -201,7 +208,7 @@ public static class FoundryHostingExtensions
}
return agent.AsBuilder()
.UseOpenTelemetry(sourceName: AgentHostTelemetry.ResponsesSourceName)
.UseOpenTelemetry(sourceName: ResponsesSourceName)
.Build();
}