Skip to content
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

Closed
cijothomas opened this issue Feb 17, 2018 · 2 comments

Comments

@cijothomas
Copy link
Contributor

cijothomas commented Feb 17, 2018

If you are reporting bug/issue, please provide detailed Repro instructions.

Repro Steps

  1. VS->New WebApp .net core

  2. Add the following to appsettings.json
    {
    "Logging": {
    "IncludeScopes": false,
    "Debug": {
    "LogLevel": {
    "Default": "Warning"
    }
    },
    "Console": {
    "LogLevel": {
    "Default": "Warning"
    }
    }
    },
    "ApplicationInsights": {
    "InstrumentationKey": "11111111-2222-3333-4444-555555555555"
    }
    }

  3. Enable AI by using AddApplicationInsightsTelemetry(). (Do not pass ikey as argument)

  4. Start app (with or without VS Debugger), and put load.

Actual Behavior

  1. Ikey is not read, and hency no telemetry sent.

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

@cijothomas cijothomas added the bug label Feb 17, 2018
@cijothomas cijothomas added this to the 2.3.0 milestone Feb 17, 2018
@cijothomas
Copy link
Contributor Author

Originally reported here:
#585 (comment)

@cijothomas cijothomas added p1 high priority and removed p1 high priority labels Feb 21, 2018
@cijothomas cijothomas changed the title iKey is not read from appsettings.json iKey is not read from appsettings.json when using AddApplicationInsightsTelemetry() Feb 22, 2018
@cijothomas cijothomas changed the title iKey is not read from appsettings.json when using AddApplicationInsightsTelemetry() iKey is not read from appsettings.json or environment when using AddApplicationInsightsTelemetry() Feb 22, 2018
@cijothomas cijothomas modified the milestones: 2.3.0, 2.4.0 May 2, 2018
@cijothomas cijothomas modified the milestones: 2.4.0, 2.3.0 May 8, 2018
@cijothomas
Copy link
Contributor Author

Closed with #670

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant