英文:
How to make opentracing work with opentelemetry
问题
我的项目在Go语言中使用OpenTelemetry进行跟踪,而我使用的一个库只支持Opentracing进行跟踪。我直接在该库中启用了跟踪,但似乎不起作用。在这种情况下,我该如何使它们一起工作?
英文:
My project is using OpenTelemetry for tracing in Go, and one of the lib I use only support tracing in Opentracing. I enabled the tracing in the lib directly and looks like it does not work. For this case of scenario, how can I make them work together?
答案1
得分: 1
你可以在 opentelemetry-go
中使用 OpenTracing 桥接器。这将把 OpenTracing API 的调用转换为 OpenTelemetry API 的调用。
在这里查看文档:https://github.com/open-telemetry/opentelemetry-go/blob/main/bridge/opentracing/doc.go
英文:
You can use the OpenTracing bridge in opentelemetry-go
. This will translate calls from the OpenTracing API into calls to the OpenTelemetry API.
See the doc here: https://github.com/open-telemetry/opentelemetry-go/blob/main/bridge/opentracing/doc.go
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论