Skip to content

Commit fdd01bc

Browse files
remove agent framework reference
1 parent 73d6792 commit fdd01bc

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

dotnet/azure-ai-foundry/sample-agent/AzureAIFoundrySampleAgent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
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

@@ -37,6 +36,7 @@
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" />

dotnet/azure-ai-foundry/sample-agent/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
builder.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
3535
builder.AddA365Tracing();

dotnet/azure-ai-foundry/sample-agent/telemetry/AgentOTELExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)