如何将 OpenTracing 与 OpenTelemetry 配合使用

huangapple go评论83阅读模式
英文:

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

huangapple
  • 本文由 发表于 2021年11月6日 01:24:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/69857064.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定