Tracing calls between microservices with Zipkin and gRPC
- Zipkin (https://github.com/openzipkin/zipkin)
- Optional: Zipkin Docker (https://github.com/openzipkin/docker-zipkin)
- govendor (https://github.com/kardianos/govendor)
Locally with govendor
(recommended):
govendor sync
go install ./cmd/...
With go get
:
go get github.com/kokaz/zipkin-demo/cmd/...
The order matters (a bit) as some services depends on others. Run the services in this order:
beta
centauri
alpha
And then use the client to talk to alpha:
alphaclient
Then go to your Zipkin UI (e.g. localhost:9411
) to see the traces.