From 4d29aee41be1c86052fcde2715ff0036efb8a58d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 25 Sep 2020 21:37:02 -0500 Subject: [PATCH] =?UTF-8?q?fix(logging):=20=F0=9F=90=9B=20resolve=20Teleme?= =?UTF-8?q?tryConfiguration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs index 1f5eec3a5..d5f30cecf 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs @@ -17,7 +17,7 @@ public static async Task TryRunWithLoggingAsync(this IHost host, Func? run .WriteTo.Conditional( _ => host.Services.GetService().IsProduction(), c => c.ApplicationInsights( - TelemetryConfiguration.CreateDefault(), + host.Services.GetRequiredService(), TelemetryConverter.Traces)) .CreateLogger();