ThomasVitale / spring-cloud-gateway-resilience-security-observability

Example with Spring Boot 3 focused on resilience, security and observability. It uses Spring Cloud Gateway, Spring Security and Spring Cloud Circuit Breaker.
Apache License 2.0
71 stars 32 forks source link

No traceId and spanId #3

Open muradzulfugarov opened 1 year ago

muradzulfugarov commented 1 year ago

Hi,

I just cloned and run the applications on my local, however traceId and spanId are empty in the logs, like below:

2023-01-27T15:03:21.000+04:00 INFO [book-service,,] 99000 --- [nio-8001-exec-6] c.t.bookservice.BookController : Returning list of books in the catalog

What can be the problem?

muradzulfugarov commented 1 year ago

@ThomasVitale any idea?

ThomasVitale commented 1 year ago

@muradzulfugarov the two applications were configured with the tracing disabled by default when running in Java, and enabled in Docker. Could that have been the case? When it's disabled, no traceId or spanId are generated.

I have just delivered some changes and now tracing is enabled by default even when running the apps directly from Java. Could you try that again?