Skip to content

Commit 7c249df

Browse files
authored
Updates code snippet to use non-obsolete call to AddApplicationInsights
The method `AddApplicationInsightsWebJobs` is marked obsolete so VS complains that it should be `AddApplicationInsightsWebJobs`
1 parent c31dbf6 commit 7c249df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/app-service/webjobs-sdk-get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ To take advantage of [Application Insights](../azure-monitor/app/app-insights-ov
386386
string instrumentationKey = context.Configuration["APPINSIGHTS_INSTRUMENTATIONKEY"];
387387
if (!string.IsNullOrEmpty(instrumentationKey))
388388
{
389-
b.AddApplicationInsights(o => o.InstrumentationKey = instrumentationKey);
389+
b.AddApplicationInsightsWebJobs(o => o.InstrumentationKey = instrumentationKey);
390390
}
391391
});
392392
var host = builder.Build();

0 commit comments

Comments
 (0)