Azure Monitor/Application Insights 不显示错误的堆栈跟踪

2023-11-21

我有一个托管在 Azure 应用服务上的 ASP .Net Core 3.0 Web API。 我试图找出为什么它在控制器操作方法之一中抛出 500 内部服务器错误。 我已经设置了 Application Insights,并且可以在 Azure 门户上的“失败”页面上看到有多个 500 异常。但是,我看不到它们的堆栈跟踪。我需要做什么才能在 Application Insights 或 Azure Monitor 中打开堆栈跟踪报告。 附:即使我的 API 在 .Net Core 2.2 上,它也没有显示堆栈跟踪,因此它不是 .Net Core 3.0 的东西。

这是一些屏幕截图:

enter image description here

enter image description here


在应用程序见解查询窗口中,编写一个查询来显示异常并投影名为“详细信息”的属性。其中包含堆栈跟踪信息。

 exceptions
| where timestamp > ago(30d)
| order by timestamp asc
| project timestamp, message = iff(message != '', message, iff(innermostMessage != '', innermostMessage, customDimensions.['prop__{OriginalFormat}'])), details
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Azure Monitor/Application Insights 不显示错误的堆栈跟踪 的相关文章

随机推荐