Skip to content

Commit

Permalink
Configure app insights for employer finance jobs webjob
Browse files Browse the repository at this point in the history
  • Loading branch information
cofaulco committed Jan 22, 2021
1 parent 1573622 commit 24554a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SFA.DAS.EmployerFinance.Jobs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
using SFA.DAS.AutoConfiguration;
using SFA.DAS.EmployerFinance.Jobs.DependencyResolution;
using SFA.DAS.EmployerFinance.Startup;
using Microsoft.ApplicationInsights.Extensibility;
using System.Configuration;

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

MainAsync().GetAwaiter().GetResult();
}

Expand Down

0 comments on commit 24554a6

Please sign in to comment.