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();