on-internet
← Community

Implement trace-id with Spring Webflux

Stack Overflow ·

I'd like to generate unique traceId per request and pass it through all services. In Spring MVC it was fairly easy by using MDC context and putting traceId in header, but in reactive stack it isn't working at all because of ThreadLocal. In general I'd like to log each request and response on every service I have with single traceId which can identify specific action in whole system. I tried to create custom filter based on article: https://azizulhaq-ananto.medium.com/how-to-handle-logs-and-tracing-in-spring-webflux-and-microservices-a0b45adc4610 but it's seems to not working. My current soluti

Comments

Sign in or sign up to comment and upvote.

No comments yet.