Skip to content

Commit cade28d

Browse files
authored
Merge pull request #43707 from Shazwazza/patch-1
Updates code snippet to use non-obsolete call to AddApplicationInsights
2 parents 305e042 + 7c249df commit cade28d

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
@@ -379,7 +379,7 @@ To take advantage of [Application Insights](../azure-monitor/app/app-insights-ov
379379
string instrumentationKey = context.Configuration["APPINSIGHTS_INSTRUMENTATIONKEY"];
380380
if (!string.IsNullOrEmpty(instrumentationKey))
381381
{
382-
b.AddApplicationInsights(o => o.InstrumentationKey = instrumentationKey);
382+
b.AddApplicationInsightsWebJobs(o => o.InstrumentationKey = instrumentationKey);
383383
}
384384
});
385385
var host = builder.Build();

0 commit comments

Comments
 (0)