Как профилировать все веб-запросы к облачной службе Azure с помощью Application Insights Profiler? - PullRequest
0 голосов
/ 07 января 2019

У меня вопрос по Application Insights Profiler.

Я установил его в облачной службе, и он работает, когда я добавляю встроенный код из документов:

https://github.com/CawaMS/EnableProfilerForCompute/blob/master/How%20to%20enable%20Application%20Insights%20Profiler%20on%20Azure%20Compute%20resources.md#enable-the-profiler-on-cloud-services-applications

using (var operation = client.StartOperation<RequestTelemetry>("[unique_name_for_your_operation]"))
{
    ProcessQueueMessage(msg);
}

Но как мне отследить все запросы с помощью профилировщика для веб-роли? Я не могу найти информацию в течение нескольких дней. Официальные документы говорят, что для веб-ролей он автоматически отслеживает все запросы:

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-profiler-cloudservice#enable-profiler-for-your-azure-cloud-service

  1. Отслеживание запросов с помощью Application Insights:

Для веб-ролей ASP.Net Application Insights может отслеживать запросы автоматически.

Для рабочих ролей добавьте код для отслеживания запросов.

А также в документах по устранению неполадок описываются проблемы службы приложений, а не облачной службы:

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-profiler-troubleshooting?toc=/azure/azure-monitor/toc.json

...