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库不应该记录堆栈跟踪吗?
发布于 2018-08-06 21:51:25
https://stackoverflow.com/questions/42580816
复制相似问题