Sleuth with webflux
See original GitHub issueI tested sleuth with webflux and mvc. But webflux with sleuth doesn’t work properly. You can see my test example.
fcaller, fclient are made with webflux. fcaller send request to fclient. And mcaller, mclient are made with mvc. mcaller send request to mclient.
I used zipkin server with docker.
docker run -d -p 9411:9411 openzipkin/zipkin
with mvc
I send request to mcaller. and mcaller request to mclient ME -> mcaller -> mclient

It works well as I expected.
with webflux
same scenario with mvc. ME -> fcaller -> fclient

but It doesn’t record “Server Start - Server Finished” span.
In debugging mode, WebFilterTraceSubscriber.onComplete()
never called. So “Server span” isn’t reported.
Is there any problem in my usage with webflux? Or is it works well as as you intended?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Spring Cloud Sleuth
Spring Cloud Sleuth · 1. HTTP Filter · 15.5. · 2. HandlerInterceptor · 15.5. · 3. Async Servlet support · 15.5. · 4....
Read more >How does Spring Cloud Sleuth propagate the MDC context in ...
I'd like to know how Spring Cloud Sleuth propagates the MDC context between threads making the MDC params available each of them.
Read more >GitHub - bijukunjummen/sleuth-webflux-sample
This is a sample set of apps that demonstrates how tracing information carries over from a client app to a service app and...
Read more >Tracing a reactive flow - Using Spring Cloud Sleuth with Boot 2
My objective is to ensure that flows from user to the client application to the service application can be traced and latencies cleanly...
Read more >Tracing a Reactive Kotlin App with Spring Cloud Sleuth
Messaging like Kafka or RabbitMQ; HTTP headers via WebMVC and WebFlux controllers; Request headers made through WebClient , and RestTemplate. Demo Application.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
looking now. thx for the ping as was snowed under
Cool, thanks!