Name: go-zipkin
Owner: Elodina
Description: Zipkin tracing library for Go
Created: 2015-10-30 13:15:43.0
Updated: 2017-12-06 06:10:45.0
Pushed: 2016-05-26 11:38:22.0
Homepage: http://elodina.github.io/go-zipkin
Size: 692
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This library focus is to provide maximum flexibility for creating Zipkin traces inside the distributed application. The library presumes the user is familiar with basic Zipkin concepts like annotations, spans, services, etc. Zipkin spans are composed in a stateless fashion. It is up to you how to manage span entities inside the application. Kafka is used as a transport to transfer the completed spans to Zipkin collector.
..
rt (
"github.com/elodina/go-zipkin"
:= 10 // tracing rate 1 of 10
erAddr := []string{"master:5000"} // Kafka broker endpoint
ucer, err := zipkin.DefaultProducer(brokerAddr) if err != nil {
.
er := zipkin.NewTracer("ServiceName", rate, producer, zipkin.LocalNetworkIP(), zipkin.DefaultPort(), zipkin.DefaultTopic())
.
:= tracer.NewSpan("span_name")
.ServerReceive()
o work here
.ServerSendAndCollect()
.
You may see the complete end-to-end example here: https://github.com/aShevc/go-zipkin-sample