Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sleuth doesn't show the trace id and the span id

I am trying to run a Spring Boot application and trace its execution with the support of Sleuth. The log shows the service name, but nothing for the trace id or the span id. All I get is [myservice,,,].

What am I missing?

Here are some lines from the log.

2017-04-30 14:41:38.750 INFO [myservice,,,] 7 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5e57643e: startup date [Sun Apr 30 14:41:38 GMT 2017]; root of context hierarchy

2017-04-30 14:41:39.264 INFO [myservice,,,] 7 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring

...

Thanks

like image 220
msayag Avatar asked Oct 20 '25 01:10

msayag


1 Answers

Like Darren mentioned this is perfectly normal. What would you want to trace here? A trace is started by an rpc call or sth like that. Please read the docs where you can read about what distributed tracing is and you can watch my video where I explain how to use Sleuth

like image 88
Marcin Grzejszczak Avatar answered Oct 22 '25 03:10

Marcin Grzejszczak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!