azure - Microsoft.ApplicationInsights.DependencyCollector 是否可以与 Azure Functions 配合使用?

标签 azure azure-functions azure-application-insights

我尝试使用 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/

相关文章:

c# - 如何在开发存储中使用 REST 上传 blob?

azure - 是否可以使用 Azure CLI 设置监视 URL Ping 测试?

Azure KQL - 在时间表之上创建总平均线

c# - 无法在 Azure 应用程序洞察中获取进程 CPU

Azure API 管理 : json-to-xml policy with consider-accept-header

java - 如何使用 Java 在 azure blob 中私下上传文件后获取 SAS URL

sql-server - SQL Azure 中 1 个特定存储过程的随机超时

Azure Function Host 在 URI 路径无效的情况下给出消息 :

azure - 调度 httpTrigger 函数

c# - 单元测试项目 Azure Functions 无法加载文件或程序集 'Newtonsoft.Json'