You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-configuration.md
+32-13Lines changed: 32 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,43 @@ A connection string in Application Insights defines the target location for send
20
20
21
21
### [.NET](#tab/net)
22
22
23
-
Add `UseAzureMonitor()` to your application startup. Depending on your version of .NET, this will be in either your `startup.cs` or `program.cs` class.
23
+
Use one of the following three ways to configure the connection string:
24
24
25
-
```csharp
26
-
usingAzure.Monitor.OpenTelemetry.AspNetCore;
27
-
usingMicrosoft.AspNetCore.Builder;
28
-
usingMicrosoft.Extensions.DependencyInjection;
25
+
- Add `UseAzureMonitor()` to your application startup. Depending on your version of .NET, this will be in either your `startup.cs` or `program.cs` class.
0 commit comments