mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(logging): 🐛 try in-mem channel to fix AppInsights
This commit is contained in:
parent
77a89de4a0
commit
f5b479178c
1 changed files with 7 additions and 7 deletions
|
|
@ -21,13 +21,13 @@ public static void AddSharedKernelLogging(this IServiceCollection services, ICon
|
|||
{
|
||||
_ = configuration ?? throw new ArgumentNullException(nameof(configuration));
|
||||
|
||||
using var serverTelemetryChannel = new ServerTelemetryChannel
|
||||
{
|
||||
StorageFolder = configuration.GetSection(ApplicationInsightsOptions.Key)
|
||||
.Get<ApplicationInsightsOptions>()
|
||||
.ServerTelemetryChannelStoragePath
|
||||
};
|
||||
services.AddSingleton(typeof(ITelemetryChannel), serverTelemetryChannel);
|
||||
//using var serverTelemetryChannel = new ServerTelemetryChannel
|
||||
//{
|
||||
// StorageFolder = configuration.GetSection(ApplicationInsightsOptions.Key)
|
||||
// .Get<ApplicationInsightsOptions>()
|
||||
// .ServerTelemetryChannelStoragePath
|
||||
//};
|
||||
//services.AddSingleton(typeof(ITelemetryChannel), serverTelemetryChannel);
|
||||
services.AddApplicationInsightsTelemetry();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue