Versions in this module Expand all Collapse all v1 v1.1.4 Jan 1, 2018 Changes in this version + const Snowball + var ErrIntOverflowRecordedSpan = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthRecordedSpan = fmt.Errorf("proto: negative length found during unmarshaling") + var Recordable opentracing.StartSpanOption = recordableOption + func AnnotateTrace() + func ChildSpan(ctx context.Context, opName string) (context.Context, opentracing.Span) + func ContextWithRecordingSpan(ctx context.Context, opName string) (retCtx context.Context, getRecording func() []RecordedSpan, cancel func()) + 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 FormatRecordedSpans(spans []RecordedSpan) string + func ImportRemoteSpans(os opentracing.Span, remoteSpans []RecordedSpan) error + func IsBlackHoleSpan(s opentracing.Span) bool + func IsNoopContext(spanCtx opentracing.SpanContext) bool + func IsRecordable(os opentracing.Span) bool + func StartChildSpan(operationName string, parentSpan opentracing.Span, separateRecording bool) opentracing.Span + func StartRecording(os opentracing.Span, recType RecordingType) + func StartSnowballTrace(ctx context.Context, tracer opentracing.Tracer, opName string) (context.Context, opentracing.Span, error) + func StopRecording(os opentracing.Span) + func TestingCheckRecordedSpans(recSpans []RecordedSpan, expected string) error + type RecordedSpan struct + Baggage map[string]string + Duration time.Duration + Logs []RecordedSpan_LogRecord + Operation string + ParentSpanID uint64 + SpanID uint64 + StartTime time.Time + Tags map[string]string + TraceID uint64 + func GetRecording(os opentracing.Span) []RecordedSpan + func (*RecordedSpan) Descriptor() ([]byte, []int) + func (*RecordedSpan) ProtoMessage() + func (m *RecordedSpan) Marshal() (dAtA []byte, err error) + func (m *RecordedSpan) MarshalTo(dAtA []byte) (int, error) + func (m *RecordedSpan) Reset() + func (m *RecordedSpan) Size() (n int) + func (m *RecordedSpan) String() string + func (m *RecordedSpan) Unmarshal(dAtA []byte) error + type RecordedSpan_LogRecord struct + Fields []RecordedSpan_LogRecord_Field + Time time.Time + func (*RecordedSpan_LogRecord) Descriptor() ([]byte, []int) + func (*RecordedSpan_LogRecord) ProtoMessage() + func (m *RecordedSpan_LogRecord) Marshal() (dAtA []byte, err error) + func (m *RecordedSpan_LogRecord) MarshalTo(dAtA []byte) (int, error) + func (m *RecordedSpan_LogRecord) Reset() + func (m *RecordedSpan_LogRecord) Size() (n int) + func (m *RecordedSpan_LogRecord) String() string + func (m *RecordedSpan_LogRecord) Unmarshal(dAtA []byte) error + type RecordedSpan_LogRecord_Field struct + Key string + Value string + func (*RecordedSpan_LogRecord_Field) Descriptor() ([]byte, []int) + func (*RecordedSpan_LogRecord_Field) ProtoMessage() + func (m *RecordedSpan_LogRecord_Field) Marshal() (dAtA []byte, err error) + func (m *RecordedSpan_LogRecord_Field) MarshalTo(dAtA []byte) (int, error) + func (m *RecordedSpan_LogRecord_Field) Reset() + func (m *RecordedSpan_LogRecord_Field) Size() (n int) + func (m *RecordedSpan_LogRecord_Field) String() string + func (m *RecordedSpan_LogRecord_Field) Unmarshal(dAtA []byte) error + type RecordingType bool + const SingleNodeRecording + const SnowballRecording + type Tracer struct + func NewTracer() *Tracer + func (t *Tracer) Close() + func (t *Tracer) Configure(sv *settings.Values) + func (t *Tracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) + func (t *Tracer) Inject(osc opentracing.SpanContext, format interface{}, carrier interface{}) error + func (t *Tracer) SetForceRealSpans(v bool) bool + func (t *Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span