gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 07:29:01 24 4
gpt4 key购买 nike

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com