Running the Zipkin server

We may run the Zipkin server locally in several ways. One of these ways involves using a Docker container. The following command launches an in-memory server instance:

docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin

After running the Docker container, the Zipkin API is available at http://192.168.99.100:9411. Alternatively, you can start it using Java libraries and the Spring Boot application. To enable Zipkin for your application, you should include the following dependencies to your Maven pom.xml file, as shown in the following code fragment. The default versions are managed by spring-cloud-dependencies. For our example application, I have used Edgware.RELEASE Spring Cloud Release Train:

<dependency> ...

Get Mastering Spring Cloud 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.