zkmoney / lightstep-tracer-go

The LightStep distributed tracing library for Go

Home Page:http://lightstep.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lightstep-tracer-go

Circle CI MIT license GoDoc

The LightStep distributed tracing library for Go.

Installation

$ go get 'github.com/lightstep/lightstep-tracer-go'

Getting started

To initialize the LightStep library in particular, either retain a reference to the LightStep opentracing.Tracer implementation and/or set the global Tracer like so:

import (
    "github.com/opentracing/opentracing-go"
    "github.com/lightstep/lightstep-tracer-go"
)

func main() {
    // Initialize the LightStep Tracer; see lightstep.Options for tuning, etc.
    lightstepTracer := lightstep.NewTracer(lightstep.Options{
        AccessToken: "YourAccessToken",
    })

    // Optionally set the opentracing global Tracer to the above
    opentracing.SetGlobalTracer(lightstepTracer)

    ...
}

For instrumentation documentation, see the opentracing-go godocs.

About

The LightStep distributed tracing library for Go

http://lightstep.com

License:MIT License


Languages

Language:Go 64.0%Language:Python 24.1%Language:Makefile 6.1%Language:C 5.7%Language:Shell 0.0%