package
0.0.0-20160920194302-ad86efcaa21b
Repository: https://github.com/a10y/cockroach.git
Documentation: pkg.go.dev
# Functions
DecodeRawSpan unmarshals into the given RawSpan.
Disable is for benchmarking use and causes all future tracers to deal in no-ops.
EncodeRawSpan encodes a raw span into bytes, using the given dest slice as a buffer.
EnsureContext checks whether the given context.Context contains a Span.
ForkCtxSpan checks if ctx has a Span open; if it does, it creates a new Span that follows from the original Span.
FormatRawSpans formats the given spans for human consumption, showing the relationship using nesting and times as both relative to the previous event and cumulative.
JoinOrNew creates a new Span joined to the provided DelegatingCarrier or creates Span from the given tracer.
JoinOrNewSnowball returns a Span which records directly via the specified callback.
NewTeeTracer creates a Tracer that sends events to multiple Tracers.
NewTracer creates a Tracer which records to the net/trace endpoint.
NewTracerAndSpanFor7881 creates a new tracer and a root span.
TracerFromCtx returns the tracer set on the context (or a parent context) via WithTracer.
WithTracer returns a context derived from the given context, for which TracerFromCtx returns the given tracer.
# Constants
Snowball is set as Baggage on traces which are used for snowball tracing.
# Variables
No description provided by the author
No description provided by the author
# Structs
A Span message holds metadata of a (potentially ongoing) span of a distributed trace as per the OpenTracing specification.
TeeSpan is the opentracing.Span implementation used by the TeeTracer.
TeeSpanContext is an opentracing.SpanContext that keeps track of SpanContexts from multiple tracers.
TeeTracer is an opentracing.Tracer that sends events to multiple Tracers.
# Type aliases
A CallbackRecorder immediately invokes itself on received trace spans.