Versions in this module Expand all Collapse all v1 v1.1.0 Mar 2, 2017 Changes in this version + const ParentIdHeader + const SpanIdHeader + const TraceIdHeader + var Disabled bool = false + var ErrUnsupportedSpanContext = errors.New("Unsupported SpanContext") + var GlobalTracer = Tracer + var Service = "" + func NameTag(name string) opentracing.StartSpanOption + type ErrContractViolation struct + func (e ErrContractViolation) Error() string + type Span struct + func StartSpanFromContext(ctx context.Context, name string, opts ...opentracing.StartSpanOption) (s *Span, c context.Context) + func (s *Span) Attach(ctx context.Context) context.Context + func (s *Span) BaggageItem(restrictedKey string) string + func (s *Span) Context() opentracing.SpanContext + func (s *Span) Finish() + func (s *Span) FinishWithOptions(opts opentracing.FinishOptions) + func (s *Span) Log(data opentracing.LogData) + func (s *Span) LogEvent(event string) + func (s *Span) LogEventWithPayload(event string, payload interface{}) + func (s *Span) LogFields(fields ...opentracinglog.Field) + func (s *Span) LogKV(alternatingKeyValues ...interface{}) + func (s *Span) SetBaggageItem(restrictedKey, value string) opentracing.Span + func (s *Span) SetOperationName(name string) opentracing.Span + func (s *Span) SetTag(key string, value interface{}) opentracing.Span + func (s *Span) Tracer() opentracing.Tracer + type Trace struct + End time.Time + Name string + ParentId int64 + Resource string + SpanId int64 + Start time.Time + Status ssf.SSFSample_Status + Tags []*ssf.SSFTag + TraceId int64 + func SpanFromContext(c context.Context) *Trace + func StartChildSpan(parent *Trace) *Trace + func StartTrace(resource string) *Trace + func (t *Trace) Attach(c context.Context) context.Context + func (t *Trace) Duration() time.Duration + func (t *Trace) Error(err error) + func (t *Trace) ProtoMarshalTo(w io.Writer) error + func (t *Trace) Record(name string, tags []*ssf.SSFTag) error + func (t *Trace) SSFSample() *ssf.SSFSample + func (t *Trace) SetParent(parent *Trace) + type Tracer struct + func (t Tracer) Extract(format interface{}, carrier interface{}) (ctx opentracing.SpanContext, err error) + func (t Tracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) (err error) + func (t Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span + func (tracer Tracer) ExtractRequestChild(resource string, req *http.Request, name string) (*Span, error) + func (tracer Tracer) InjectRequest(t *Trace, req *http.Request) error