Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring-cloud-sleuth in a reactive environment

I should say I'm really impressed with the simplicity and usefulness of spring-cloud-sleuth and zipkin.

However, I'm working on a POC for which I'm considering reactive toolkits. Vertx 3 is the first item in my list to try (with spring cloud ecosystem). I'm wondering if Sleuth log tracing would work in a reactive context as I guess it relies on ThreadLocals to pass around the context? Keen to understand where Sleuth would stand in a reactive environment.

like image 234
user1189332 Avatar asked Jan 01 '26 02:01

user1189332


1 Answers

Thanks for the kind words! In Sleuth Edgware we will support Reactor - https://github.com/spring-cloud/spring-cloud-sleuth/tree/master/spring-cloud-sleuth-reactor and in Sleuth Finchley we will support reactor and webflux https://github.com/spring-cloud/spring-cloud-sleuth/blob/2.0.x/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebFluxAutoConfiguration.java. In other words it's already possible to use Sleuth in the reactive context.

like image 59
Marcin Grzejszczak Avatar answered Jan 04 '26 11:01

Marcin Grzejszczak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!