Spring Cloud Sleuth

less than 1 minute read

Assigning Trace id to all the Microservices

All Microservices Projects are hosted on different servers on different ports.

Provides a unique id to all the requests for distributed tracing

Place the dependency to all the projects needed a unique request id

Spring Cloud Sleuth

<!-- Spring Cloud Sleuth -->
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-sleuth</artifactId>
		</dependency>

private Logger logger = LoggerFactory.getLogger(this.getClass());

Sleuth with Zipkin over RabbitMQ or Kafka

Messaging queue is utilized to keep all the logs from different servers into a central location.

https://nitinkc.github.io/spring/microservices/zipkin-distributed-tracing/