我的应用程序是 Microsoft Azure Function App。 与 HttpTrigger 以及 Microsoft.Extensions.Logging - ILogger 一起使用。
如何将自定义列添加到 Application Insights - 请求、跟踪表。
该列将应用程序引用 ID 与应用程序洞察的操作 ID 相关联。
最佳答案
本文介绍了如何使用您自己的 TelemetryClient
,它可以与 ILogger
并行运行,并为您提供将遥测放入 AppInsights 的充分灵 active :https://github.com/Azure/Azure-Functions/wiki/App-Insights#custom-telemetry
您还可以直接使用 ILogger
查看此以添加自定义维度:https://github.com/Azure/azure-functions-host/wiki/ILogger#structured-logging
关于c# - 如何在 azure applicationInsights 中创建自定义列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52023120/