mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Merging package updates from feature branch.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user