Я пытаюсь настроить Application Insights для своей веб-работы (Microsoft.Azure.Webjobs (v: 2.3)
if (!string.IsNullOrEmpty(instrumentationKey))
{
// Wire up with default filters; Filtering will be explained later.
config.LoggerFactory = new LoggerFactory()
.AddApplicationInsights(instrumentationKey, null)
.AddConsole();
config.Tracing.ConsoleLevel = TraceLevel.Off;
}
Завод-регистратор недоступен.
Я установил эти пакеты ниже.
<package id="Microsoft.ApplicationInsights" version="2.4.0" targetFramework="net471" />
<package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net471" />
<package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.4.1" targetFramework="net471" />
<package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.4.1" targetFramework="net471" />
<package id="Microsoft.ApplicationInsights.WindowsServer" version="2.4.1" targetFramework="net471" />
<package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.4.0" targetFramework="net471" />
<package id="Microsoft.Azure.WebJobs.Logging" version="3.0.6" targetFramework="net471" />
<package id="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" version="2.3.0" targetFramework="net471" />
Спасибо!