Address copilot feedback

This commit is contained in:
Chunan Ye
2025-12-29 11:35:34 -08:00
parent e12591994c
commit a5a365b19b
7 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore
```
- Configure the app to use Azure Monitor
An AspNetCore app typically has a Program.cs file that "builds" the app. Find this file and apply these changes.
An ASP.NET Core app typically has a Program.cs file that "builds" the app. Find this file and apply these changes.
- Add `using Azure.Monitor.OpenTelemetry.AspNetCore;` at the top
- Before calling `builder.Build()`, add this line `builder.Services.AddOpenTelemetry().UseAzureMonitor();`.