@@ -65,7 +65,7 @@ By default, ASP.NET Core applications have an Application Insights logging provi
65
65
public void ConfigureServices (IServiceCollection services )
66
66
{
67
67
services .AddApplicationInsightsTelemetry ();
68
- // Configure the Connection String/Instrumentation key in appsettings.json
68
+ // Configure the Connection String in appsettings.json
69
69
}
70
70
71
71
public void Configure (IApplicationBuilder app , IWebHostEnvironment env )
@@ -146,13 +146,13 @@ namespace WebApplication
146
146
})
147
147
.ConfigureLogging ((context , builder ) =>
148
148
{
149
- // Providing an instrumentation key is required if you're using the
149
+ // Providing a connection string is required if you're using the
150
150
// standalone Microsoft.Extensions.Logging.ApplicationInsights package,
151
151
// or when you need to capture logs during application startup, such as
152
152
// in Program.cs or Startup.cs itself.
153
153
builder .AddApplicationInsights (
154
- configureTelemetryConfiguration : (config ) => config .ConnectionString = context .Configuration [" APPLICATIONINSIGHTS_CONNECTION_STRING" ],
155
- configureApplicationInsightsLoggerOptions : (options ) => { }
154
+ configureTelemetryConfiguration : (config ) => config .ConnectionString = context .Configuration [" APPLICATIONINSIGHTS_CONNECTION_STRING" ],
155
+ configureApplicationInsightsLoggerOptions : (options ) => { }
156
156
);
157
157
158
158
// Capture all log-level entries from Program
@@ -194,7 +194,7 @@ namespace WebApplication
194
194
public void ConfigureServices (IServiceCollection services )
195
195
{
196
196
services .AddApplicationInsightsTelemetry ();
197
- // Configure the Connection String/Instrumentation key in appsettings.json
197
+ // Configure the Connection String in appsettings.json
198
198
}
199
199
200
200
// The ILogger<Startup> is resolved by dependency injection
0 commit comments