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

Download Zipkin Server

Download Zipkin
java -jar zipkin-server-2.23.2-exec.jar
Zipkin dashboard
<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

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

User Service

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:

--

--

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