Zipkin is a distributed tracing system which used to monitor in a microservice environment.
This article assumes that you are currently developing microservices using Spring Boot 3 and Spring Cloud. Since Spring Cloud Sleuth cannot be used in Spring Boot 3 applications, I want to show how tracing can be done in Spring Boot 3 application.
Follow these steps to implement Zipkin in a Spring Boot 3 application:
1-) Add required dependencies to pom.xml file of your project

2-) Add required properties to docker-compose.yml file

The term “zipkin” within “zipkin:9411” refers to the Zipkin service.
3-) Add logging level pattern to your logback.xml file
%d{yyyy-MM-dd HH:mm:ss} [%thread] [%X{traceId:-},%X{spanId:-}] %-5level %logger{36} – %msg%n
4-) Update the hosts file on your computer
5-) See traces in zipkin:9411
