본문 바로가기

MSA

38. Microservice의 분산추적 Zipkin

1. Zipkin Server

https://zipkin.io

 

OpenZipkin · A distributed tracing system

Zipkin Zipkin is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in service architectures. Features include both the collection and lookup of this data. If you have a trace ID in a log file, you can jump di

zipkin.io

Twitter 에서 사용하는 분산환경 트레이싱(서비스의 시작과 경로를 추적할 수 있다)

Span: 하나의 요청에 사용되는 작업단위 (64bits unique ID)

Trace: Tree 구조의 Span set(추적성 확보)

 

2. Spring Cloud Sleuth

스프링부트와 Zipkin과 연동

 

3. Zipkin 다운로드 및 설치

4. Zipkin 실행

java -jar zipkin.jar

5. Zipkin 접속 : http://127.0.0.1:9411/zipkin/