在我的应用程序中查看跟踪 asp.net 核心捕获的选项有哪些?

What are my options for viewing the traces asp.net core captures in my applications?

我最近一直在阅读 asp.net 核心中的分布式跟踪主题。我正在使用 asp.net 核心 5,可以看到它正在自动创建与 W3C 上下文跟踪兼容的跟踪信息。我计划使用此信息来帮助改进我的标准日志记录,但是,我也想知道我的选项是什么来记录要在可视化工具中使用的此跟踪信息。

我猜 Application Insights 与此无缝集成(如果有误,请纠正我),但除了 AI,我还有什么选择?我通常对所有内容都使用 AWS 服务,因为我的客户在 AWS 云中,但看起来 AWS X-Ray 的 .net 核心库滚动他们自己的跟踪数据并且不会发送 .net 已经捕获的跟踪信息,这有点烦人。

这个追踪信息除了AI还能发到哪些地方可以查看?或者是否可以使用 AWS X-Ray 做到这一点,但我只是找不到关于如何实现的答案?

我想我找到了这个问题的完美答案。重新阅读 OpenTelemetry 文档,它看起来像是与 .net core > 3.

中存在的 asp.net 核心 Activities 功能无缝集成

来自https://opentelemetry.io/docs/net/getting-started/

OpenTelemetry for .NET is unique among OpenTelemetry implementations, as it is integrated with the .NET System.Diagnostics library. At a high level, you can think of OpenTelemetry for .NET as a bridge between the telemetry available through System.Diagnostics and the greater OpenTelemetry ecosystem, such as OpenTelemetry Protocol (OTLP) and the OpenTelemetry Collector.

这使我能够导出到许多不同的跟踪提供程序,如 Jaeger 和 Zipkin,但在 OpenTelemetry 的 NuGet 包中四处寻找,我还注意到它有一个 AWS X-Ray Exporter,如果效果不错。