Versions in this module Expand all Collapse all v0 v0.2.1 Sep 14, 2018 v0.2.0 Sep 13, 2018 Changes in this version + func PutSpanInContext(ctx context.Context, span *Span) context.Context + func PutTraceInContext(ctx context.Context, trace *Trace) context.Context + type Config struct + PresendHook func(map[string]interface{}) + SamplerHook func(map[string]interface{}) (bool, int) + var GlobalConfig Config + type Span struct + func GetSpanFromContext(ctx context.Context) *Span + func (s *Span) AddField(key string, val interface{}) + func (s *Span) AddRollupField(key string, val float64) + func (s *Span) AddTraceField(key string, val interface{}) + func (s *Span) CreateAsyncChild(ctx context.Context) (context.Context, *Span) + func (s *Span) CreateChild(ctx context.Context) (context.Context, *Span) + func (s *Span) GetChildren() []*Span + func (s *Span) GetParent() *Span + func (s *Span) IsAsync() bool + func (s *Span) Send() + func (s *Span) SerializeHeaders() string + type Trace struct + func GetTraceFromContext(ctx context.Context) *Trace + func NewTrace(ctx context.Context, serializedHeaders string) (context.Context, *Trace) + func (t *Trace) AddField(key string, val interface{}) + func (t *Trace) GetRootSpan() *Span + func (t *Trace) Send()