Skip to content

Commit b0468ea

Browse files
author
Timothy Mothra
authored
Update opentelemetry-enable.md
1 parent 45d725d commit b0468ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ using Microsoft.Extensions.DependencyInjection;
136136

137137
var builder = WebApplication.CreateBuilder(args);
138138

139-
builder.Services.AddOpenTelemetry().UseAzureMonitor(options => {
140-
//Uncomment the line below when setting the Application Insights Connection String via code
141-
//options.ConnectionString = "<Your Connection String>";
142-
});
139+
builder.Services.AddOpenTelemetry().UseAzureMonitor();
143140

144141
var app = builder.Build();
145142

0 commit comments

Comments
 (0)