File tree Expand file tree Collapse file tree
dotnet/azure-ai-foundry/sample-agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 <ItemGroup >
2222 <!-- A365 SDK Packages -->
2323 <PackageReference Include =" Microsoft.Agents.A365.Notifications" Version =" 0.1.72-beta" />
24- <PackageReference Include =" Microsoft.Agents.A365.Observability.Extensions.AgentFramework" Version =" 0.1.72-beta" />
2524 <PackageReference Include =" Microsoft.Agents.A365.Observability.Runtime" Version =" 0.1.72-beta" />
2625 <PackageReference Include =" Microsoft.Agents.A365.Observability.Hosting" Version =" 0.1.72-beta" />
2726
3736 <PackageReference Include =" Microsoft.Extensions.Http.Resilience" Version =" 9.9.0" />
3837 <PackageReference Include =" Microsoft.Extensions.ServiceDiscovery" Version =" 9.5.0" />
3938 <PackageReference Include =" OpenTelemetry.Exporter.OpenTelemetryProtocol" Version =" 1.12.0" />
39+ <PackageReference Include =" OpenTelemetry.Exporter.Console" Version =" 1.12.0" />
4040 <PackageReference Include =" OpenTelemetry.Extensions.Hosting" Version =" 1.12.0" />
4141 <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.12.0" />
4242 <PackageReference Include =" OpenTelemetry.Instrumentation.Http" Version =" 1.12.0" />
Original file line number Diff line number Diff line change 2828builder . Logging . AddConsole ( ) ;
2929
3030// ********** Configure A365 Services **********
31- // Configure observability.
32- builder . Services . AddAgenticTracingExporter ( clusterCategory : "production" ) ;
31+ // Configure observability - Using console exporter for development
32+ // Removed AddAgenticTracingExporter dependency, using OpenTelemetry Console exporter instead
3333
3434// Add A365 tracing
3535builder . AddA365Tracing ( ) ;
Original file line number Diff line number Diff line change @@ -145,7 +145,9 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) w
145145 // Example filter: suppress telemetry for health checks
146146 o . FilterHttpRequestMessage = request =>
147147 ! request . RequestUri ? . AbsolutePath . Contains ( "health" , StringComparison . OrdinalIgnoreCase ) ?? true ;
148- } ) ;
148+ } )
149+ // Add console exporter for development/debugging
150+ . AddConsoleExporter ( ) ;
149151 } ) ;
150152
151153 //builder.AddOpenTelemetryExporters();
You can’t perform that action at this time.
0 commit comments