简体   繁体   English

如何使 opentracing 与 opentelemetry 一起工作

[英]How to make opentracing work with opentelemetry

My project is using OpenTelemetry for tracing in Go, and one of the lib I use only support tracing in Opentracing.我的项目使用 OpenTelemetry 在 Go 中进行跟踪,我使用的其中一个库仅支持在 Opentracing 中进行跟踪。 I enabled the tracing in the lib directly and looks like it does not work.我直接在lib中启用了跟踪,看起来它不起作用。 For this case of scenario, how can I make them work together?对于这种情况,我怎样才能让它们一起工作?

You can use the OpenTracing bridge in opentelemetry-go .您可以在opentelemetry-go使用 OpenTracing 桥接器。 This will translate calls from the OpenTracing API into calls to the OpenTelemetry API.这会将来自 OpenTracing API 的调用转换为对 OpenTelemetry API 的调用。

See the doc here: https://github.com/open-telemetry/opentelemetry-go/blob/main/bridge/opentracing/doc.go请参阅此处的文档: https : //github.com/open-telemetry/opentelemetry-go/blob/main/bridge/opentracing/doc.go

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM