Skip to content
This repository was archived by the owner on Jul 5, 2020. It is now read-only.
This repository was archived by the owner on Jul 5, 2020. It is now read-only.

APPINSIGHTS_INSTRUMENTATIONKEY AppSetting overrides ikey specified in code #236

@AlexBulankou

Description

@AlexBulankou
  1. Create 4.6 Web Application, enable Application Insights SDK 2.2 Beta 4 and specify in Global.asax.cs:

  2. TelemetryConfiguration.Active.InstrumentationKey = "ikey1";

  3. Publish to Azure WebApp and verify that telemetry is being sent to ikey1

  4. Add AppSetting to WebApp: APPINSIGHTS_INSTRUMENTATIONKEY pointing to ikey2

Expected: telemetry continues to be sent to ikey1, because settings in code take priority
Actual: telemetry now is being sent to ikey2, while QuickPulse events continue to go to ikey1.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions