Versions in this module Expand all Collapse all v1 v1.5.0 Mar 6, 2018 Changes in this version + func NewContextWithSpan(ctx context.Context, c *Span) context.Context + func NewContextWithTrace(ctx context.Context, t *Trace) context.Context + func NewTrace(name string, opt ...StartSpanOption) (*Trace, *Span) + func NewTraceFromSpan(name string, parent SpanContext, opt ...StartSpanOption) (*Trace, *Span) + func Walk(v Visitor, node *TreeNode) + type RawSpan struct + Context SpanContext + Fields fields.Fields + Labels labels.Labels + Name string + ParentSpanID uint64 + Start time.Time + type Span struct + func SpanFromContext(ctx context.Context) *Span + func (s *Span) Context() SpanContext + func (s *Span) Finish() + func (s *Span) MergeFields(args ...fields.Field) + func (s *Span) MergeLabels(args ...string) + func (s *Span) SetFields(set fields.Fields) + func (s *Span) SetLabels(args ...string) + func (s *Span) StartSpan(name string, opt ...StartSpanOption) *Span + func (s *Span) Tree() *TreeNode + type SpanContext struct + SpanID uint64 + TraceID uint64 + func (s *SpanContext) UnmarshalBinary(data []byte) error + func (s SpanContext) MarshalBinary() ([]byte, error) + type StartSpanOption interface + type StartTime time.Time + type Trace struct + func TraceFromContext(ctx context.Context) *Trace + func (t *Trace) MarshalBinary() ([]byte, error) + func (t *Trace) Merge(other *Trace) + func (t *Trace) Tree() *TreeNode + func (t *Trace) TreeFrom(root uint64) *TreeNode + func (t *Trace) UnmarshalBinary(data []byte) error + type TreeNode struct + Children []*TreeNode + Raw RawSpan + func (t *TreeNode) String() string + type Visitor interface + Visit func(*TreeNode) Visitor