azure - 为什么最里面的Assembly是空的?

标签 azure azure-application-insights azure-monitoring

我已经为我的 .NET 6 应用程序实现了 Azure App Insights。有谁知道为什么 innermostAssembly 是空的?此屏幕来自 Azure Application Insights 中的“监控”>“日志”

enter image description here

最佳答案

因为它没有内部异常。

采用此示例代码:

var simpleException = new Exception("simpleException");
var nestedException = new Exception("nestedException", new Exception("innerexceptino"));

_telemetryClient.TrackException(simpleException);
_telemetryClient.TrackException(nestedException);

结果如下:

记录的 simpleException 不会填充最里面的字段,记录的 nestedException 会填充。

关于azure - 为什么最里面的Assembly是空的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74025302/

相关文章:

c# - Application Insights - 服务器没有显示任何数据

azure - 使用 Azure 数据工厂中的复制事件解压缩包含多个文本文件的文件

azure - 如何在没有 Azure stack 的情况下通过 API/CLI 创建新的目录租户?

Azure App Insights 显示空间消耗指标

azure - 我可以禁用除 C​​ontainerLogs 之外的所有日志和指标吗?

azure - 如何从Azure指标获取 "Network In"和 "Network Out"?

针对由 cloud_RoleInstance 筛选的自定义指标的 Azure Monitor 警报

Python 脚本按流使用 Azure 存储 Blob 中的数据,并按流更新 Blob,无需本地文件读取和上传

.net - .NET New Relic Agent 是否可以配置为记录我的应用程序的日志消息并捕获异常?

azure - 应用程序洞察 : How to disable SQL Dependency telemetry