Versions in this module Expand all Collapse all v1 v1.0.3 Jul 6, 2017 v1.0.2 Jun 7, 2017 Changes in this version + func SetEnabled(enabled bool) func() v1.0.1 May 18, 2017 Changes in this version + const Snowball + var ErrIntOverflowSpanContextCarrier = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthSpanContextCarrier = fmt.Errorf("proto: negative length found during unmarshaling") + func AnnotateTrace() + func ChildSpan(ctx context.Context, opName string) (context.Context, opentracing.Span) + func DecodeRawSpan(enc []byte, dest *basictracer.RawSpan) error + func Disable() func() + func EncodeRawSpan(rawSpan *basictracer.RawSpan, dest []byte) ([]byte, error) + func EnsureContext(ctx context.Context, tracer opentracing.Tracer, name string) (context.Context, func()) + func FinishSpan(span opentracing.Span) + func ForkCtxSpan(ctx context.Context, opName string) (context.Context, opentracing.Span) + func FormatRawSpans(spans []basictracer.RawSpan) string + func IngestRemoteSpans(ctx context.Context, remoteSpans [][]byte) error + func NewTracer() opentracing.Tracer + type CallbackRecorder func(sp basictracer.RawSpan) + func (cr CallbackRecorder) RecordSpan(sp basictracer.RawSpan) + type RecordedTrace struct + func JoinRemoteTrace(ctx context.Context, tr opentracing.Tracer, carrier *SpanContextCarrier, ...) (context.Context, *RecordedTrace, error) + func NewRecordingTracer() (opentracing.Tracer, *RecordedTrace) + func NewTracerAndSpanFor7881(ctx context.Context) (context.Context, *RecordedTrace, error) + func StartSnowballTrace(ctx context.Context, opName string) (context.Context, *RecordedTrace, error) + func (tr *RecordedTrace) AddDummySpan(rs basictracer.RawSpan) + func (tr *RecordedTrace) ClearSpans() + func (tr *RecordedTrace) Done() + func (tr *RecordedTrace) GetSpans() []basictracer.RawSpan + type SpanContextCarrier struct + Baggage map[string]string + Sampled bool + SpanID uint64 + TraceID uint64 + func (*SpanContextCarrier) Descriptor() ([]byte, []int) + func (*SpanContextCarrier) ProtoMessage() + func (m *SpanContextCarrier) Marshal() (dAtA []byte, err error) + func (m *SpanContextCarrier) MarshalTo(dAtA []byte) (int, error) + func (m *SpanContextCarrier) Reset() + func (m *SpanContextCarrier) Size() (n int) + func (m *SpanContextCarrier) String() string + func (m *SpanContextCarrier) Unmarshal(dAtA []byte) error + func (sp *SpanContextCarrier) GetBaggage(fn func(key, value string)) + func (sp *SpanContextCarrier) SetBaggageItem(key, value string) + func (sp *SpanContextCarrier) SetState(traceID, spanID uint64, sampled bool) + func (sp *SpanContextCarrier) State() (traceID, spanID uint64, sampled bool) + type TeeSpan struct + func (ts *TeeSpan) BaggageItem(restrictedKey string) string + func (ts *TeeSpan) Context() opentracing.SpanContext + func (ts *TeeSpan) Finish() + func (ts *TeeSpan) FinishWithOptions(opts opentracing.FinishOptions) + func (ts *TeeSpan) Log(data opentracing.LogData) + func (ts *TeeSpan) LogEvent(event string) + func (ts *TeeSpan) LogEventWithPayload(event string, payload interface{}) + func (ts *TeeSpan) LogFields(fields ...otlog.Field) + func (ts *TeeSpan) LogKV(alternatingKeyValues ...interface{}) + func (ts *TeeSpan) SetBaggageItem(restrictedKey, value string) opentracing.Span + func (ts *TeeSpan) SetOperationName(operationName string) opentracing.Span + func (ts *TeeSpan) SetTag(key string, value interface{}) opentracing.Span + func (ts *TeeSpan) Tracer() opentracing.Tracer + type TeeSpanContext struct + func (tsc TeeSpanContext) ForeachBaggageItem(handler func(k, v string) bool) + type TeeTracer struct + func NewTeeTracer(tracers ...opentracing.Tracer) *TeeTracer + func (t *TeeTracer) CreateSpanFrom(spans ...spanWithOpt) *TeeSpan + func (t *TeeTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) + func (t *TeeTracer) Inject(sc opentracing.SpanContext, format interface{}, carrier interface{}) error + func (t *TeeTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span