我尝试使用 Azure Functions 安装 Microsoft.ApplicationInsights.DependencyCollector。但它不收集任何依赖性数据。仅当我使用自定义事件时,我才能获取依赖项数据。有没有什么方法可以在不编写自定义代码的情况下启用此跟踪。
最佳答案
这是一个known issue ,您应该始终在 Azure Function 中编写用于依赖项跟踪的自定义代码:
Dependencies that the function has to other services don't show up automatically, but you can write custom code to show the dependencies. The sample code in the C# custom telemetry section shows how.
关于azure - Microsoft.ApplicationInsights.DependencyCollector 是否可以与 Azure Functions 配合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54245343/