- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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 查询的数据的屏幕截图。
有什么想法吗? AI 库是否不应该记录堆栈跟踪?
最佳答案
traceerror 数据有限,试试这个https://learn.microsoft.com/fr-fr/azure/application-insights/app-insights-api-custom-events-metrics#TrackTrace
关于azure - ApplicationInsights TrackException() 不记录堆栈跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42580816/
ApplicationInsights TrackException() 未记录堆栈跟踪。 调用非常简单,如下所示: this.telemetry.TrackException(ex, propert
ApplicationInsights TrackException() 未记录堆栈跟踪。 调用非常简单,如下所示: this.telemetry.TrackException(ex, propert
我目前正在尝试在 Application Insights 中记录异常以供以后调查。但是,我尝试使用 TrackException 方法记录的任何异常都不会出现在 Application Insigh
我是一名优秀的程序员,十分优秀!