Documentation ¶
Index ¶
- func NewTracer(opts ...TracerOption) opentracing.Tracer
- type Span
- 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(logData opentracing.LogData)
- func (s Span) LogEvent(event string)
- func (s Span) LogEventWithPayload(event string, payload interface{})
- func (s Span) LogFields(fields ...log.Field)
- func (s Span) LogKV(alternatingKeyValues ...interface{})
- func (s Span) SetBaggageItem(restrictedKey, value string) opentracing.Span
- func (s Span) SetOperationName(operationName string) opentracing.Span
- func (s Span) SetTag(key string, value interface{}) opentracing.Span
- func (s Span) Tracer() opentracing.Tracer
- type SpanContext
- type Tracer
- func (t Tracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (t Tracer) Inject(spanContext opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (t Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
- type TracerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracer ¶
func NewTracer(opts ...TracerOption) opentracing.Tracer
Types ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func (Span) BaggageItem ¶
func (Span) FinishWithOptions ¶
func (s Span) FinishWithOptions(opts opentracing.FinishOptions)
func (Span) LogEventWithPayload ¶
func (Span) SetBaggageItem ¶
func (Span) SetOperationName ¶
type SpanContext ¶
type SpanContext struct {
// contains filtered or unexported fields
}
func (SpanContext) ForeachBaggageItem ¶
func (sc SpanContext) ForeachBaggageItem(handler func(k, v string) bool)
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
type TracerOption ¶
type TracerOption func(*tracerConfig)
func WithExporter ¶
func WithExporter(exporter trace.SpanExporter) TracerOption
Click to show internal directories.
Click to hide internal directories.