Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + var Delegator delegatorType + func New(recorder SpanRecorder) opentracing.Tracer + func NewWithOptions(opts Options) opentracing.Tracer + type DelegatingCarrier interface + GetBaggage func(func(key, value string)) + SetBaggageItem func(key, value string) + SetState func(traceID, spanID uint64, sampled bool) + State func() (traceID, spanID uint64, sampled bool) + type EventBaggage struct + Key string + Value string + type EventCreate struct + OperationName string + type EventFinish RawSpan + type EventLog opentracing.LogData + type EventLogFields opentracing.LogRecord + type EventTag struct + Key string + Value interface{} + type LoggableSpan struct + Duration time.Duration + Logs []SpanLog + Operation string + ParentSpanID uint64 + SpanID uint64 + Start time.Time + Tags opentrace.Tags + TraceID uint64 + type LoggableSpanRecorder struct + func NewLoggableRecorder() *LoggableSpanRecorder + func (r *LoggableSpanRecorder) RecordSpan(span RawSpan) + type LoggableTracer struct + func (t *LoggableTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) + func (t *LoggableTracer) Inject(sc opentracing.SpanContext, format interface{}, carrier interface{}) error + func (t *LoggableTracer) Options() Options + func (t *LoggableTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span + func (t *LoggableTracer) StartSpanWithOptions(operationName string, opts opentracing.StartSpanOptions) opentracing.Span + type Options struct + DebugAssertSingleGoroutine bool + DebugAssertUseAfterFinish bool + DropAllLogs bool + EnableSpanPool bool + MaxLogsPerSpan int + NewSpanEventListener func() func(SpanEvent) + Recorder SpanRecorder + ShouldSample func(traceID uint64) bool + TrimUnsampledSpans bool + func DefaultOptions() Options + type RawSpan struct + Context SpanContext + Duration time.Duration + Logs []opentracing.LogRecord + Operation string + ParentSpanID uint64 + Start time.Time + Tags opentracing.Tags + type Span interface + Operation func() string + Start func() time.Time + type SpanContext struct + Baggage map[string]string + Sampled bool + SpanID uint64 + TraceID uint64 + func (c SpanContext) ForeachBaggageItem(handler func(k, v string) bool) + func (c SpanContext) WithBaggageItem(key, val string) SpanContext + type SpanEvent interface + type SpanField struct + Key string + Value string + type SpanLog struct + Field []SpanField + Timestamp time.Time + type SpanRecorder interface + RecordSpan func(span RawSpan) + type Tracer interface + Options func() Options