We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d725d commit b0468eaCopy full SHA for b0468ea
articles/azure-monitor/app/opentelemetry-enable.md
@@ -136,10 +136,7 @@ using Microsoft.Extensions.DependencyInjection;
136
137
var builder = WebApplication.CreateBuilder(args);
138
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
-});
+builder.Services.AddOpenTelemetry().UseAzureMonitor();
143
144
var app = builder.Build();
145
0 commit comments