dot*_*tep 2 azure azure-application-insights azure-functions .net-6.0
以前我有 Azure Web App (.net core),它成功地将 SQL Server 和服务总线依赖项跟踪到 Application Insights 中。它无法与 Azure Functions 一起使用。
环境
我在前端有 Azure API 管理,后端是 Azure Function,它调用 SQL Server 和服务总线。
我知道我正在发布我自己的答案。此外,将来也有可能出现一些好的解决方案,或者以进程内模式的方式进行集成。
然后按照步骤操作。
Microsoft.ApplicationInsights.WorkerService
Run Code Online (Sandbox Code Playgroud)
services.AddApplicationInsightsTelemetryWorkerService();
Run Code Online (Sandbox Code Playgroud)
更多信息请访问 https://learn.microsoft.com/en-us/azure/azure-monitor/app/worker-service
| 归档时间: |
|
| 查看次数: |
1157 次 |
| 最近记录: |