Closed curfew117 closed 6 months ago
Hello @curfew117, thanks for reporting the issue. This is probably due to https://github.com/spring-cloud/spring-cloud-commons/issues/1315. Can you upgrade SC Commons to 4.1.1
and see if that helps?
Yes, it's working as expected when I upgrade SC Commons to 4.1.1
.
Thank you @OlgaMaciaszek
Closing as duplicate of gh-1315.
Was referred from https://github.com/spring-projects/spring-boot/issues/39327
I recently migrated to Spring Boot 3.2, Spring Cloud 2023.0.0 and I'm having issues with trace-id and span-id not being printed in logs when a
RestTemplate
bean is annotated with@LoadBalanced
.The pic attached below is when a![image](https://github.com/spring-projects/spring-boot/assets/99183897/d78782b2-b83d-46af-9c1f-51a0f785be1b)
RestTemplate
bean is created without the@LoadBalanced
annotation and trace-id and span-id is includedAnd the below pic when a![image](https://github.com/spring-projects/spring-boot/assets/99183897/a7650020-4449-44e3-97b4-699449f028ef)
RestTemplate
is created with the@LoadBalanced
annotation and trace-id and span-id is emptyThe log being printed above is a part of a
@GetMapping
whose controller has no dependency with the createdRestTemplate
.I've attached the sample project I used to replicate the issue. demo.zip