From 3c48ca17c8ad6bc6fb01c8985add6b1f90db012e Mon Sep 17 00:00:00 2001 From: Ben Thomas Date: Mon, 20 Apr 2026 10:25:27 -0700 Subject: [PATCH] Bump preview version to 260420.1 and fix AgentServer package deps (#5367) - Bump PackageVersion to 0.0.1-preview.260420.1 - Bump Azure.AI.AgentServer.Core beta.21 -> beta.22 (required by Azure.AI.AgentServer.Responses beta.3) - Replace AgentHostTelemetry.ResponsesSourceName with local constant (type made internal in AgentServer.Core beta.22) Co-authored-by: alliscode Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- dotnet/Directory.Packages.props | 6 +++--- dotnet/nuget/nuget-package.props | 2 +- .../Hosting/ServiceCollectionExtensions.cs | 9 ++++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props index ce1bbffa0a..1f7a9a6f3b 100644 --- a/dotnet/Directory.Packages.props +++ b/dotnet/Directory.Packages.props @@ -19,9 +19,9 @@ - + - + @@ -193,4 +193,4 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file diff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.props index 55e676470c..5169aae04f 100644 --- a/dotnet/nuget/nuget-package.props +++ b/dotnet/nuget/nuget-package.props @@ -4,7 +4,7 @@ 0.0.1 1 - $(VersionPrefix)-preview.260417.2 + $(VersionPrefix)-preview.260420.1 0.0.1 Debug;Release;Publish diff --git a/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/ServiceCollectionExtensions.cs b/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/ServiceCollectionExtensions.cs index 73d032f13b..0cfbf7a40e 100644 --- a/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/ServiceCollectionExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/ServiceCollectionExtensions.cs @@ -117,6 +117,13 @@ public static class FoundryHostingExtensions return endpoints; } + /// + /// The ActivitySource name for the Responses hosting pipeline. + /// Matches the value previously exposed by AgentHostTelemetry.ResponsesSourceName + /// in Azure.AI.AgentServer.Core. + /// + private const string ResponsesSourceName = "Azure.AI.AgentServer.Responses"; + /// /// Wraps with instrumentation /// so that agent invocations emit spans into the pipeline registered by @@ -131,7 +138,7 @@ public static class FoundryHostingExtensions } return agent.AsBuilder() - .UseOpenTelemetry(sourceName: AgentHostTelemetry.ResponsesSourceName) + .UseOpenTelemetry(sourceName: ResponsesSourceName) .Build(); }