Skip to content

Commit

Permalink
add otel to app host
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Oct 8, 2024
1 parent 67aa5e3 commit 7afffa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/src/Microsoft.AutoGen.Agents.Client/App.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Google.Protobuf;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace Microsoft.AutoGen.Agents.Client;

Expand All @@ -14,6 +15,7 @@ public static async ValueTask<WebApplication> StartAsync(AgentTypes? agentTypes
// start the server runtime
RuntimeApp ??= await Runtime.Host.StartAsync(local);
var clientBuilder = WebApplication.CreateBuilder();
clientBuilder.AddServiceDefaults();
var appBuilder = clientBuilder.AddAgentWorker();
agentTypes ??= AgentTypes.GetAgentTypesFromAssembly()
?? throw new InvalidOperationException("No agent types found in the assembly");
Expand Down

0 comments on commit 7afffa9

Please sign in to comment.