我有使用 OpenTelemetry 的 c# 应用程序。
不同的后端收集器有不同的导出器(例如 Jaeger)
但在我的开发环境中,没有设置这样的后端服务。
虽然我可以使用控制台导出器,但它会与我的其他消息混合在一起。
我也尝试过 Otlp Exporter
.AddOtlpExporter(options => options.Endpoint = new Uri(@"C:\temp\a.txt"))
Run Code Online (Sandbox Code Playgroud)
但返回以下错误
System.NotSupportedException: 'Endpoint URI scheme (file) is not supported. Currently only "http" and "https" are supported.'
Run Code Online (Sandbox Code Playgroud)
目前似乎不支持文件架构。
有什么方法可以简单地将其输出到文件中以便于测试和调试吗?
| 归档时间: |
|
| 查看次数: |
4999 次 |
| 最近记录: |