Integrating microservice components with Zipkin

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 ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.