Span ID
Trace ID
Collector, Query Service, Database, WebUI
로 구성됩니다.pom.xml 의존성 설정
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
</dependency>
프로퍼티 설정
spring:
zipkin:
base-url: http://localhost:9411
spring:
zipkin:
sender:
type: web
spring:
sleuth:
sampler:
probability: 1
2020-08-02 16:04:19.165 INFO [users-ws,9d89923f671947ba,9d89923f671947ba,true] 7952 --- [o-auto-1-exec-4] c.a.p.a.u.P.service.UserServiceImpl : Before calling albums Microservice
2020-08-02 16:04:19.245 DEBUG [users-ws,9d89923f671947ba,af17d4388f2e79be,true] 7952 --- [rix-albums-ws-3] c.a.p.a.u.P.feign.AlbumServiceClient : [AlbumServiceClient#getAlbums] ---> GET http://albums-ws/users/f5b313e2-411f-4fc3-95e7-9aa5c43c286c/albums HTTP/1.1
...
2020-08-02 16:04:19.266 INFO [users-ws,9d89923f671947ba,9d89923f671947ba,true] 7952 --- [o-auto-1-exec-4] c.a.p.a.u.P.service.UserServiceImpl : After calling albums Microservice
[{root microservice}, {trace ID}, {span ID}]
curl -sSL https://zipkin.io/quickstart.sh | bash -s
java -jar zipkin.jar
http://localhost:9411