diff --git a/WebsiteBackendFunctions/Program.cs b/WebsiteBackendFunctions/Program.cs index 9a48d51..b63b285 100644 --- a/WebsiteBackendFunctions/Program.cs +++ b/WebsiteBackendFunctions/Program.cs @@ -12,6 +12,11 @@ public static void Main(string[] args) { var host = new HostBuilder() .ConfigureFunctionsWebApplication() + .ConfigureServices(services => + { + services.AddApplicationInsightsTelemetryWorkerService(); + services.ConfigureFunctionsApplicationInsights(); + }) .ConfigureLogging(logging => { logging.Services.Configure(options => @@ -26,11 +31,6 @@ public static void Main(string[] args) } }); }) - .ConfigureServices(services => - { - services.AddApplicationInsightsTelemetryWorkerService(); - services.ConfigureFunctionsApplicationInsights(); - }) .Build(); host.Run();