Skip to content

OpenTracing Tracer implementation for GCloud StackDriver in Go.

License

Notifications You must be signed in to change notification settings

breadwallet/gcloud-opentracing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

gcloud-opentracing

OpenTracing Tracer implementation for GCloud StackDriver in Go. Based on basictracer and implemented Recorder for this propose.

Getting Started


To install gcloud-opentracing, use go get:

go get github.com/lovoo/gcloud-opentracing

or govendor:

govendor fetch github.com/lovoo/gcloud-opentracing

or other tool for vendoring.

Sample Usage


First of all, you need to init Global Tracer with GCloud Tracer:

package main

import (
    gcloudtracer "github.com/lovoo/gcloud-opentracing"
    opentracing "github.com/opentracing/opentracing-go"
    "golang.org/x/net/context"
)

func main() {
    // ...
    opentracing.InitGlobalTracer(
        gcloudtracer.NewTracer(context.Background(), gcloudtracer.WithProject("project-id"))
    )
    // ...
}

Then you can create traces as decribed here. More information you can find on OpenTracing project website.

About

OpenTracing Tracer implementation for GCloud StackDriver in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%