Skip to content

Commit

Permalink
[CON-3034] Add missing nuget packages for application insights and in…
Browse files Browse the repository at this point in the history
…tialise the telemetry for employerFinance.MessageHandlers
  • Loading branch information
cofaulco committed Jan 25, 2021
1 parent 9bd5b72 commit 1454365
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.11.0" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version="2.2.0" />
Expand Down
3 changes: 3 additions & 0 deletions src/SFA.DAS.EmployerFinance.MessageHandlers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
using SFA.DAS.AutoConfiguration;
using SFA.DAS.EmployerFinance.MessageHandlers.DependencyResolution;
using SFA.DAS.EmployerFinance.Startup;
using System.Configuration;
using Microsoft.ApplicationInsights.Extensibility;

namespace SFA.DAS.EmployerFinance.MessageHandlers
{
public class Program
{
public static void Main()
{
TelemetryConfiguration.Active.InstrumentationKey = ConfigurationManager.AppSettings["APPINSIGHTS_INSTRUMENTATIONKEY"];
MainAsync().GetAwaiter().GetResult();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.11.0" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="2.2.0" />
<PackageReference Include="Microsoft.VisualStudio.SlowCheetah" Version="3.1.66" />
<PackageReference Include="NLog.Schema" Version="4.5.3" />
Expand Down

0 comments on commit 1454365

Please sign in to comment.