tracing

package
v0.0.0-...-6c88f67 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateTrace

func AnnotateTrace()

AnnotateTrace adds an annotation to the golang executation tracer by calling a no-op cgo function.

func Disable

func Disable() func()

Disable is for benchmarking use and causes all future tracers to deal in no-ops. Calling the returned closure undoes this effect. There is no synchronization, so no moving parts are allowed while Disable and the closure are called.

func NewTracer

func NewTracer() opentracing.Tracer

NewTracer creates a Tracer which records directly to the net/trace endpoint.

func NoopSpan

func NoopSpan() opentracing.Span

NoopSpan returns a Span which discards all operations.

func SpanFromContext

func SpanFromContext(ctx context.Context) opentracing.Span

SpanFromContext wraps opentracing.SpanFromContext so that the returned Span is never nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL