opentracing

package module
v0.0.0-...-45fead3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 (s Span) BaggageItem(restrictedKey string) string

func (Span) Context

func (s Span) Context() opentracing.SpanContext

func (Span) Finish

func (s Span) Finish()

func (Span) FinishWithOptions

func (s Span) FinishWithOptions(opts opentracing.FinishOptions)

func (Span) Log

func (s Span) Log(logData opentracing.LogData)

func (Span) LogEvent

func (s Span) LogEvent(event string)

func (Span) LogEventWithPayload

func (s Span) LogEventWithPayload(event string, payload interface{})

func (Span) LogFields

func (s Span) LogFields(fields ...log.Field)

func (Span) LogKV

func (s Span) LogKV(alternatingKeyValues ...interface{})

func (Span) SetBaggageItem

func (s Span) SetBaggageItem(restrictedKey, value string) opentracing.Span

func (Span) SetOperationName

func (s Span) SetOperationName(operationName string) opentracing.Span

func (Span) SetTag

func (s Span) SetTag(key string, value interface{}) opentracing.Span

func (Span) Tracer

func (s Span) Tracer() opentracing.Tracer

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
}

func (Tracer) Extract

func (t Tracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)

func (Tracer) Inject

func (t Tracer) Inject(spanContext opentracing.SpanContext, format interface{}, carrier interface{}) error

func (Tracer) StartSpan

func (t Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span

type TracerOption

type TracerOption func(*tracerConfig)

func WithExporter

func WithExporter(exporter trace.SpanExporter) TracerOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL