elodina/go-zipkin

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

Zipkin library for Go

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.

Quickstart
..
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()
.
Examples

You may see the complete end-to-end example here: https://github.com/aShevc/go-zipkin-sample


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.