fix(logging): 🐛 try in-mem channel to fix AppInsights

This commit is contained in:
Collin M. Barrett 2020-09-26 07:51:30 -05:00
parent 77a89de4a0
commit f5b479178c

View file

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