Complete microservices architecture with real examples — Step 7 — Distribute log tracing

Download Zipkin Server

  1. Go to https://zipkin.io/ in the browser.
  2. Click Quickstart
  3. Click on the latest release on the Java version. You can run it as a dockerized version but for the sake of simplicity, we have chosen the Java version here.
Download Zipkin
java -jar zipkin-server-2.23.2-exec.jar
Zipkin dashboard

pom.xml

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>

Department Service

application.xml

server:
port: 8280
spring:
application:
name: DEPARTMENT-SERVICE
zipkin:
base-url:
http://127.0.0.1:9411/
management:
endpoints:
web:
exposure:
include: "*"

User Service

application.xml

server:
port: 8380
spring:
application:
name: USER-SERVICE
zipkin:
base-url:
http://127.0.0.1:9411/
management:
endpoints:
web:
exposure:
include: "*"
Zipkin query
User Service selection
Log tracing with Zipkin
Dependency page

Download source from github:

Download config-server

Go to Step 1 — Department Microservice

Go to Step 2 — User Microservice

Go to Step 3 — Service Registry

Go to Step 4 — API Gateway

Go to Step 5 — Circuit Breaker

Go to Step 6— Config Server

--

--

Agnasarp is a technology-focused blog that has enough information about cutting-edge technologies that you can use for your problems. Stay with us!

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Agnasarp

Agnasarp

3 Followers

Agnasarp is a technology-focused blog that has enough information about cutting-edge technologies that you can use for your problems. Stay with us!