Skip to content

Commit 83b176a

Browse files
Update opentelemetry-configuration.md
1 parent 52ea474 commit 83b176a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ This article covers configuration settings for the Azure Monitor OpenTelemetry d
1515

1616
## Connection string
1717

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.
2019
### [ASP.NET Core](#tab/aspnetcore)
2120

2221
Use one of the following three ways to configure the connection string:
2322

24-
- Add `UseAzureMonitor()` to your application startup, in your `program.cs` class.
23+
- Add `UseAzureMonitor()` to your `program.cs` file:
2524

2625
```csharp
27-
// Create a new ASP.NET Core web application builder.
2826
var builder = WebApplication.CreateBuilder(args);
2927

3028
// Add the OpenTelemetry telemetry service to the application.
@@ -33,10 +31,8 @@ Use one of the following three ways to configure the connection string:
3331
options.ConnectionString = "<Your Connection String>";
3432
});
3533

36-
// Build the ASP.NET Core web application.
3734
var app = builder.Build();
3835

39-
// Start the ASP.NET Core web application.
4036
app.Run();
4137
```
4238

0 commit comments

Comments
 (0)