mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-23 11:55:12 +00:00
Address copilot feedback
This commit is contained in:
@@ -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();`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user