package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev

# Functions

AnnotateTrace adds an annotation to the golang executation tracer by calling a no-op cgo function.
ChildSpan opens a span as a child of the current span in the context (if there is one).
ChildSpanSeparateRecording is like ChildSpan but the new span has separate recording (see StartChildSpan).
ContextWithRecordingSpan returns a context with an embedded trace span which returns its contents when getRecording is called and must be stopped by calling the cancel method when done with the context (getRecording() needs to be called before cancel()).
EnsureChildSpan is the same as EnsureContext, except it creates a child span for the input context if the input context already has an active trace.
EnsureContext checks whether the given context.Context contains a Span.
FindMsgInRecording returns the index of the first span containing msg in its logs, or -1 if no span is found.
FinishSpan closes the given span (if not nil).
ForkCtxSpan checks if ctx has a Span open; if it does, it creates a new Span that "follows from" the original Span.
FormatRecordedSpans formats the given spans for human consumption, showing the relationship using nesting and times as both relative to the previous event and cumulative.
GetRecording retrieves the current recording, if the span has recording enabled.
ImportRemoteSpans adds RecordedSpan data to the recording of the given span; these spans will be part of the result of GetRecording.
IsBlackHoleSpan returns true if events for this span are just dropped.
IsNoopContext returns true if the span context is from a "no-op" span.
IsRecordable returns true if {Start,Stop}Recording() can be called on this span.
IsRecording returns true if the span is recording its events.
LogTags returns a StartSpanOption that sets the span tags to the given log tags.
LogTagsFromCtx returns a StartSpanOption that sets the span tags to the log tags in the context.
NewTracer creates a Tracer.
RegisterTagRemapping sets the span tag name that corresponds to the given log tag name.
SetSpanStats sets the stats on a span.
StartChildSpan creates a child span of the given parent span.
StartRecording enables recording on the span.
StartSnowballTrace takes in a context and returns a derived one with a "snowball span" in it.
StopRecording disables recording on this span.
TestingCheckRecordedSpans checks whether a recording looks like an expected one represented by a string with one line per expected span and one line per expected event (i.e.

# Constants

NonRecordableSpan means that the root span will not be recordable.
NoRecording means that the span isn't recording.
RecordableSpan means that the root span will be recordable.
SingleNodeRecording means that only spans on the current node are recorded.
Snowball is set as Baggage on traces which are used for snowball tracing.
SnowballRecording means that remote child spans (generally opened through RPCs) are also recorded.
StatTagPrefix is prefixed to all stats output in span tags.
TagPrefix is prefixed to all tags that should be output in SHOW TRACE.

# Variables

No description provided by the author
No description provided by the author
Recordable is a StartSpanOption that forces creation of a real span.

# Structs

RecordedSpan is a span that is part of a recording.
No description provided by the author
No description provided by the author
Tracer is our own custom implementation of opentracing.Tracer.

# Interfaces

SpanStats are stats that can be added to a span.

# Type aliases

RecordableOpt specifies whether a root span should be recordable.
RecordingType is the type of recording that a span might be performing.