# Packages

Package propagation implements the binary trace context format.
Package tracestate implements support for the Tracestate header of the W3C TraceContext propagation format.

# Functions

AlwaysSample returns a Sampler that samples every trace.
ApplyConfig applies changes to the global tracing configuration.
BoolAttribute returns a bool-valued attribute.
Float64Attribute returns a float64-valued attribute.
FromContext returns the Span stored in a context, or a Span that is not recording events if there isn't one.
Int64Attribute returns an int64-valued attribute.
NeverSample returns a Sampler that samples no traces.
NewContext returns a new context with the given Span attached.
NewSpan is a convenience function for creating a *Span out of a *span.
ProbabilitySampler returns a Sampler that samples a given fraction of traces.
RegisterExporter adds to the list of Exporters that will receive sampled trace spans.
StartSpan starts a new child span of the current span in the context.
StartSpanWithRemoteParent starts a new child span of the span from the given parent.
StringAttribute returns a string-valued attribute.
UnregisterExporter removes from the list of Exporters the Exporter that was registered with the given name.
WithSampler makes new spans to be be created with a custom sampler.
WithSpanKind makes new spans to be created with the given kind.

# Constants

DefaultMaxAnnotationEventsPerSpan is default max number of annotation events per span.
DefaultMaxAttributesPerSpan is default max number of attributes per span.
DefaultMaxLinksPerSpan is default max number of links per span.
DefaultMaxMessageEventsPerSpan is default max number of message events per span.
The linked span is a child of the current span.
The linked span is the parent of the current span.
The relationship of the two spans is unknown.
Indicates a received RPC message.
Indicates a sent RPC message.
Unknown event type.
All available span kinds.
All available span kinds.
All available span kinds.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.
Status codes for use with Span.SetStatus.

# Variables

DefaultTracer is the tracer used when package-level exported functions are invoked.

# Structs

Annotation represents a text annotation with a set of attributes and a timestamp.
Attribute represents a key-value pair on a span, link or annotation.
Config represents the global tracing configuration.
Link represents a reference from one span to another span.
MessageEvent represents an event describing a message sent or received on the network.
SamplingDecision is the value returned by a Sampler.
SamplingParameters contains the values passed to a Sampler.
Span is a struct wrapper around the SpanInt interface, which allows correctly handling nil spans, while also allowing the SpanInterface implementation to be swapped out.
SpanContext contains the state that must propagate across process boundaries.
SpanData contains all the information collected by a Span.
StartOptions contains options concerning how a span is started.
Status is the status of a Span.

# Interfaces

Exporter is a type for functions that receive sampled trace spans.
SpanInterface represents a span of a trace.
Tracer can start spans and access context functions.

# Type aliases

LinkType specifies the relationship between the span that had the link added, and the linked span.
MessageEventType specifies the type of message event.
Sampler decides whether a trace should be sampled and exported.
StartOption apply changes to StartOptions.
TraceOptions contains options associated with a trace span.