Setting up a Zipkin distributed tracing server

The latest version of the Zipkin server JAR can be downloaded from https://search.maven.org/remote_content?g=io.zipkin.java&a=zipkin-server&v=LATEST&c=exec.

The following screenshot shows launching the Zipkin server as a JAR in a Mac Terminal:

The command for Mac is as follows:

RABBIT_URI=amqp://localhost java -jar  zipkin-server-*-exec.jar

On Windows, you need two commands:

SET RABBIT_URI=amqp://localhost 
java -jar zipkin-server-*-exec.jar
Up until now, we used SPRING INITIALIZR to set up our projects. Since the Zipkin server is not available on SPRING INITIALIZR from Spring Boot 2.0.0.RELEASE, we use a different approach to set up the Zipkin server.

You can launch the Zipkin UI dashboard at http://localhost:9411/. The following is a screenshot of that. There is no data shown, as none of the microservices are connected to Zipkin yet:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset