1

I switched from RestTemplate to RestClient in my application and since switching I’m unable to get the same TraceId between services. Is anyone else having this same problem?

I tried updating everything as the Spring documentation suggest but no luck. I’m expecting to get the same TraceId when one service calls another.

2
  • 1
    That should work out-of-the-box as it uses the same parts as the RestTemplate does. Add your configuration (you should have little to non for this to work).
    – M. Deinum
    Commented Feb 12 at 15:10
  • I found the issue on tests, its like there are scenarios where the traceid is not propagated. So, no autoconfiguration fixes that.
    – lacripta
    Commented Jul 8 at 19:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.