Versions in this module Expand all Collapse all v2 v2.9.3 Mar 19, 2021 Changes in this version + const DefaultSize + func FromContext(ctx context.Context) (traceID string, parentSpanID string, isFound bool) + func ToContext(ctx context.Context, traceID, parentSpanID string) context.Context + type Option func(o *Options) + type Options struct + Size int + func DefaultOptions() Options + type ReadOption func(o *ReadOptions) + func ReadTrace(t string) ReadOption + type ReadOptions struct + Trace string + type Span struct + Duration time.Duration + Id string + Metadata map[string]string + Name string + Parent string + Started time.Time + Trace string + Type SpanType + type SpanType int + const SpanTypeRequestInbound + const SpanTypeRequestOutbound + type Tracer interface + Finish func(*Span) error + Read func(...ReadOption) ([]*Span, error) + Start func(ctx context.Context, name string) (context.Context, *Span) + var DefaultTracer Tracer = new(noop)