Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from NielZeeman/master
Browse files Browse the repository at this point in the history
Application Insight Key not being pulled through from the config
  • Loading branch information
wpschaub committed Dec 15, 2015
2 parents 9d57aa4 + 910ead7 commit 1d78b34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/RMWorkflowMigrator.CmdLine/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,12 @@ private static void DisplayParameters()
private static TelemetryClient CreateTelemetryClient(string instrumentationKey, bool noMetrics)
{
var configuration = TelemetryConfiguration.CreateDefault();
configuration.InstrumentationKey = instrumentationKey;
configuration.DisableTelemetry = noMetrics;
return new TelemetryClient(configuration);

var telemetryClient = new TelemetryClient(configuration);
telemetryClient.InstrumentationKey = instrumentationKey;

return telemetryClient;
}
}
}

0 comments on commit 1d78b34

Please sign in to comment.