# Functions
AsSpan converts an opentracing.Span back to *Span.
CloseTracer tries to cast opentracing.GlobalTracer() into *Tracer, and calls its Close function.
InitFromConfig is an alias to InitGlobalTracerWithCloser.
InitGlobalTracer initializes opentracing's global tracer.
InitGlobalTracerWithCloser is the combination of InitGlobalTracer and CloseTracer.
IsSpanHook returns true if hook implements at least one of the span Hook interfaces and false if it implements none.
RegisterCreateServerSpanHooks registers Hooks into the Baseplate request lifecycle.
ResetHooks removes all global hooks and resets back to initial state.
SetMetricsTagsAllowList sets the allow-list used to carry tags from spans to metrics.
StartSpanFromHeaders creates a server span from the passed in Headers.
StartTopLevelServerSpan initializes a new, top level server span.
TestWrapper is a log.Wrapper implementation can be used in tests.
# Constants
When set, this trace passes all samplers.
Max number of spans allowed in the message queue at one time.
Max size of serialized span in bytes.
Prefix added to the queue name.
SpanType values.
SpanType values.
SpanType values.
Well-known (special) span tag keys.
Well-known (special) span tag keys.
Well-known (special) span tag keys.
Well-known (special) span tag keys.
String values.
Boolean values.
Zipkin span well-known binary annotation keys.
Zipkin span well-known binary annotation keys.
Zipkin span well-known time annotation keys.
Zipkin span well-known time annotation keys.
Zipkin span well-known time annotation keys.
Zipkin span well-known time annotation keys.
# Structs
Config is the configuration struct for the tracing package containing configuration values to be used in InitGlobalTracer.
ErrorReporterCreateServerSpanHook registers each Server Span with an ErrorReporterSpanHook that will publish errors sent to OnPreStop to Sentry.
FinishOptions are the options to be converted into opentracing.FinishOptions.
Headers is the argument struct for starting a Span from upstream headers.
InvalidSpanTypeError is the error type returned when trying to use a Span in a way that is incompatible with its type.
Span defines a tracing span.
SpanTypeOption implements StartSpanOption to set the type of the span.
StartSpanOptions is the additional options for baseplate spans.
A Tracer creates and manages spans.
ZipkinBinaryAnnotation defines Zipkin's binary annotation json format.
ZipkinEndpointInfo defines Zipkin's endpoint json format.
ZipkinSpan defines a span in zipkin's json format.
ZipkinTimeAnnotation defines Zipkin's time annotation json format.
# Interfaces
AddSpanCounterHook allows you to inject functionality after adding a counter on a span.
CreateChildSpanHook allows you to inject functionality into the creation of a Baseplate span.
CreateServerSpanHook allows you to inject functionality into the lifecycle of a Baseplate request.
SetSpanTagHook allows you to inject functionality after setting a tag on a span.
StartSpanOption defines additional options for baseplate spans.
StartStopSpanHook allows you to inject functionality immediately after starting a span and immediately before stopping a span.
# Type aliases
SpanType enum.