This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
null/Empty ikey from AIServiceOptions is overriding ikey from appsettings.json #989
Labels
Milestone
If you are reporting bug/issue, please provide detailed Repro instructions.
Repro Steps
var aiOptions = new ApplicationInsightsServiceOptions();
aiOptions.EnableHeartbeat = false;
services.AddApplicationInsightsTelemetry(aiOptions);
Actual Behavior
ikey from appsettings.json is overwritten by the one in aiOptions which is empty.
Expected Behavior
Do not override aiOptionsIkey unless its not null/non empty.
Version Info
SDK Version (version of https://www.nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) :
.NET Core Version (TargetFramework in your .csproj file) :
How Application was onboarded with SDK(Installed Nugets/VisualStudio/Azure WebAppExtension) :
OS :
Hosting Info (IIS/Azure Web Apps/Running From Visual Studio etc) :
The text was updated successfully, but these errors were encountered: