带有OpenTracing的Spring Cloud Sleuth

Jav*_*inz 4 spring-cloud-sleuth opentracing

有没有办法在OpenTracing中使用Spring Cloud Sleuth?我想将Spring客户与Jaeger连接

Ano*_*ala 7

Spring Sleuth is now OpenTracing compatible. All you have to do is use OpenTracing Jars in your class path.

You can then use Sleuth-Zipkin to send instrumentation data to Jaeger's Zipkin collector.

这样,您可以用最少的配置来实现所需的一切。

您可以在此处使用我的示例程序作为示例:

https://github.com/anoophp777/spring-webflux-jaegar-log4j2


Mar*_*zak 2

这里正在进行讨论 - https://github.com/spring-cloud/spring-cloud-sleuth/issues/599。一般来说,我们不会明确使用 OpenTracing API,但在标头传播方面我们与 Zipkin 兼容。您还可以根据需要操纵标头名称,因此如果您使用的任何类型的库需要跨度/跟踪等其他标头名称,那么您可以根据需要自行设置。