Versions in this module Expand all Collapse all v0 v0.2.93 Dec 5, 2020 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)