Skip to content

zkmoney/lightstep-tracer-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 64.1%
  • Python 24.1%
  • Makefile 6.1%
  • C 5.7%