This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
iKey is not read from appsettings.json or environment when using AddApplicationInsightsTelemetry() #605
Labels
Milestone
If you are reporting bug/issue, please provide detailed Repro instructions.
Repro Steps
VS->New WebApp .net core
Add the following to appsettings.json
{
"Logging": {
"IncludeScopes": false,
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning"
}
}
},
"ApplicationInsights": {
"InstrumentationKey": "11111111-2222-3333-4444-555555555555"
}
}
Enable AI by using AddApplicationInsightsTelemetry(). (Do not pass ikey as argument)
Start app (with or without VS Debugger), and put load.
Actual Behavior
Expected Behavior
Ikey should be read from appsettings.json
Version Info
SDK Version : 2.2
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : VS
OS : Windows
Hosting Info (IIS/Azure WebApps/ etc) : Self
The text was updated successfully, but these errors were encountered: