如何在消费模式下分析 .Net Core Azure Functions?

How can you profile a .Net Core Azure Function in consumption mode?

我想分析一个 .Net Core Azure 函数,这样我就可以看到每个方法调用在调用堆栈中花费多长时间的细目分类。我相信 Application Insights 没有提供这样的细节。

我在网上搜索了不同的分析器,none 似乎在消费模式下支持 Azure Functions。 Stackify 发布了 Retrace,仅在应用服务计划模式下支持 Azure Functions (https://stackify.com/announcing-retrace-azure-functions-preview/)。我尝试使用 JetBrain 的 dotTrace 运行 我的 Function App exe 文件但没有成功。

是否有任何分析器可用于在消费模式下分析 .Net Core Azure Functions?

目前我们没有函数应用程序的分析器。您可以尝试使用日志的输出并进行一些 post 处理来计算函数应用程序中的每个方法调用。

如果你想为 Azure Functions 提出功能请求,你可以在此处留下反馈:https://feedback.azure.com/forums/355860-azure-functions