We will need to connect all the microservice components that we want to trace with Zipkin server. Here is the list of components we will start with:
- Microservice A
- Service consumer
- Zuul API Gateway Server
All we need to do is add dependencies on spring-cloud-sleuth-zipkin and spring-cloud-starter-bus-amqp to the pom.xml file of the preceding projects:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-sleuth-zipkin</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId> </dependency>
Go ahead and execute the add service at http://localhost:8100/add. You can now see the details ...