Version: v12.0.0+incompatible Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


View Source
var (
	// Transport is the default tracing RoundTripper. The custom options setter will control
	// if traces are being emitted or not.
	Transport = NewTransport()


func Disable

func Disable()

Disable will disable instrumentation for metrics and traces.

func Enable

func Enable() error

Enable will start instrumentation for metrics and traces.

func EnableWithAIForwarding

func EnableWithAIForwarding(agentEndpoint string) (err error)

EnableWithAIForwarding will start instrumentation and will connect to app insights forwarder exporter making the metrics and traces available in app insights.

func EndSpan

func EndSpan(ctx context.Context, httpStatusCode int, err error)

EndSpan ends a previously started span stored in the context

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if monitoring is enabled for the sdk.

func NewTransport

func NewTransport() *ochttp.Transport

NewTransport returns a new instance of a tracing-aware RoundTripper.

func StartSpan

func StartSpan(ctx context.Context, name string) context.Context

StartSpan starts a trace span


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL