Zipkin
2016-01-04
Kommentare




Quickstart
1 | git clone https://github.com/openzipkin/docker-zipkin |
zipkin web: host:8080
zipkin collector: host:8086
詳細請看docker compose
架構

術語
Annotation: 關於 時間(timestamp) 服務(service) host 的字串資料
- Annotation
- cs - Client Start.
- sr - Server Receive.
- ss - Server Send.
- cr - Client Recieve.
- BinaryAnnotation : 沒有時間元素,他們代表額外的
RPC資訊

Span: 代表一個特定的方法呼叫,由一組(set) annotation 組成,並且有 名稱 及 ID

Trace: 紀錄同一個 Request 的一組 span

DEMO

1 | rootSpan := zipkin.NewSpan("192.168.99.100:9410", "AService", "Endpoint a1", newID(), newID(), newID()) |




官方 DEMO


