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
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,14 @@ This article covers configuration settings for the Azure Monitor OpenTelemetry d
15
15
16
16
## Connection string
17
17
18
-
A connection string in Application Insights defines the target location for sending telemetry data, ensuring it reaches the appropriate resource for monitoring and analysis.
19
-
18
+
A connection string in Application Insights defines the target location for sending telemetry data.
20
19
### [ASP.NET Core](#tab/aspnetcore)
21
20
22
21
Use one of the following three ways to configure the connection string:
23
22
24
-
- Add `UseAzureMonitor()` to your application startup, in your `program.cs`class.
23
+
- Add `UseAzureMonitor()` to your `program.cs`file:
25
24
26
25
```csharp
27
-
// Create a new ASP.NET Core web application builder.
28
26
varbuilder=WebApplication.CreateBuilder(args);
29
27
30
28
// Add the OpenTelemetry telemetry service to the application.
@@ -33,10 +31,8 @@ Use one of the following three ways to configure the connection string:
0 commit comments