question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sleuth with webflux

See original GitHub issue

I 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

스크린샷 2019-07-21 오후 9 51 47

It works well as I expected.

with webflux

same scenario with mvc. ME -> fcaller -> fclient

스크린샷 2019-07-21 오후 9 53 17

but It doesn’t record “Server Start - Server Finished” span.


In debugging mode, WebFilterTraceSubscriber.onComplete() never called. So “Server span” isn’t reported.

https://github.com/spring-cloud/spring-cloud-sleuth/blob/06ccdd60abf6f47626d4c9fe568a2440233eca67/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebFilter.java#L252-L256


Is there any problem in my usage with webflux? Or is it works well as as you intended?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
codefromthecryptcommented, Aug 2, 2019

looking now. thx for the ping as was snowed under

0reactions
marcingrzejszczakcommented, Aug 2, 2019

Cool, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found