azure - ApplicationInsights TrackException() 不记录堆栈跟踪

标签 azure azure-application-insights

ApplicationInsights TrackException() 未记录堆栈跟踪。

调用非常简单,如下所示:

this.telemetry.TrackException(ex, properties);

异常(当然抛出和捕获)在传递给 TrackException() 时有堆栈跟踪。

应用程序洞察生成的 json 是这样的(我可以在输出窗口中看到它):

{
  "name": "Microsoft.ApplicationInsights.ff0c6b7759fa46cdbec661fecb9efb4d.Exception",
  "time": "2017-03-03T13:31:15.5946550Z",
  "iKey": "ff0c6b77-59fa-46cd-bec6-61fecb9efb4d",
  "tags": {
    "ai.cloud.roleInstance": "POSTAZIONE-DEV1",
    "ai.internal.sdkVersion": "dotnet:2.2.0-54037"
  },
  "data": {
    "baseType": "ExceptionData",
    "baseData": {
      "ver": 2,
      "properties": {
        "Keywords": "0x0000000000000000",
        "EventName": "ExceptionInHealthTrackerProc",
        "Level": "Always",
        "ProviderName": "Gamshy.RandomNumberGenerator.Service.ServiceEventSource",
        "EventId": "-1"
      },
      "exceptions": [
        {
          "id": 51763190,
          "typeName": "System.Exception",
          "message": "Tentativo di divisione per zero.",
          "hasFullStack": true
        }
      ]
   }
  }
}

ApplicationInsights nuget 包是 Microsoft.ApplicationInsights 2.2.0

这是我可以看到从 Azure 门户中的 Analytics 查询的数据的屏幕截图。 enter image description here

有什么想法吗? AI 库是否不应该记录堆栈跟踪?

最佳答案

关于azure - ApplicationInsights TrackException() 不记录堆栈跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42580816/

相关文章:

powershell - ADAL 和 Azure 自动化

azure - 在 Azure 门户中哪里可以找到自定义指标

azure - App Insights cookie 被 Azure 防火墙阻止

java - 如何在Spring Boot应用程序中设置变量instrumentationKey以进行a​​zure监控

windows - Azure Windows VM 扩展正在预配失败状态 VM 代理为 "Ready",但备份在 VM 运行状态 GuestAgentSnapshotTaskStatusError 时失败

azure - 从 azure CLI 获取租户名称

c# - 如何从azure功能应用程序在应用程序见解中插入自定义日志?

azure - 更改 Application Insights 配置是否会触发应用程序池回收

azure - VMDepot 发生了什么?

azure - 迁移到应用服务移动应用程序后进行身份验证 : uid vs sid