Versions in this module Expand all Collapse all v1 v1.0.2 Feb 12, 2022 Changes in this version + const FlagsKeyName + const ParentSpanIdKeyName + const SampledKeyName + const SpanIdKeyName + const TraceHeader + const TraceIdKeyName + func DelZipkin(logid string) + func ZipkinInit(name string) + type OpenTracing struct + ServerName string + func GetOpenTracing() *OpenTracing + func NewOpenTracing(name string) *OpenTracing + func (ot *OpenTracing) Dump() + func (ot *OpenTracing) EndChildSpan(index int) + func (ot *OpenTracing) EndChildSpanByDuration(index int, duration int64) + func (ot *OpenTracing) FromContextSetName(strContext, name string) + func (ot *OpenTracing) GetChildSpanContext(index int) (string, error) + func (ot *OpenTracing) SetChildTag(index int, k, v string) + func (ot *OpenTracing) SetServerName(name string) + func (ot *OpenTracing) SetTag(k, v string) + func (ot *OpenTracing) StartChildSpan(name string) (int, error) + type Span struct + func NewSpan(name string) *Span + func (s *Span) Finish() + func (s *Span) FinishByDuration(duration int64) + func (s *Span) GetContextStr() string + func (s *Span) GetDuration() int64 + func (s *Span) GetSampled() uint8 + func (s *Span) GetSpanId() string + func (s *Span) SetSampled(sampled uint8) + func (s *Span) SetSpanName(name string) + func (s *Span) SetTag(k, v string) + type Zipkin struct + func NewZipkin(logid string) *Zipkin + func (z *Zipkin) Clear() + func (z *Zipkin) Dump() ([]map[string]interface{}, error) + func (z *Zipkin) EndChildSpan(index int) error + func (z *Zipkin) EndChildSpanByDuration(index int, duration int64) error + func (z *Zipkin) GetChildSpanContextString(index int) (string, error) + func (z *Zipkin) SetChildTag(k, v string, index int) error + func (z *Zipkin) SetFromContext(context string) + func (z *Zipkin) SetName(name string) + func (z *Zipkin) SetServerName(name string) + func (z *Zipkin) SetTag(k, v string) error + func (z *Zipkin) StartChildSpan(name string) (int, error)