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.
Click to show internal directories.
Click to hide internal directories.