Documentation ¶
Index ¶
- Variables
- func CustomTag(key string, val interface{}) opentracing.Tag
- func FromIncomingContext(ctx context.Context) opentracing.StartSpanOption
- func HeaderExtractor(hdr map[string][]string) opentracing.StartSpanOption
- func HeaderInjector(ctx context.Context, hdr map[string][]string) context.Context
- func MetadataExtractor(md map[string][]string) opentracing.StartSpanOption
- func MetadataInjector(ctx context.Context, md metadata.MD) context.Context
- func SetGlobalTracer(tracer opentracing.Tracer)
- func SpanFromContext(ctx context.Context) opentracing.Span
- func StartSpanFromContext(ctx context.Context, op string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
- func TagComponent(component string) opentracing.Tag
- func TagSpanKind(kind string) opentracing.Tag
- func TagSpanURL(url string) opentracing.Tag
- type MetadataReaderWriter
- type NullStartSpanOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // String ... String = log.String )
Functions ¶
func FromIncomingContext ¶
FromIncomingContext ...
func HeaderExtractor ¶
HeaderExtractor ...
func HeaderInjector ¶
HeaderInjector ...
func MetadataExtractor ¶
MetadataExtractor ...
func MetadataInjector ¶
MetadataInjector ...
func SpanFromContext ¶
SpanFromContext ...
Types ¶
type MetadataReaderWriter ¶
MetadataReaderWriter ...
func (MetadataReaderWriter) ForeachKey ¶
func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey ...
type NullStartSpanOption ¶
type NullStartSpanOption struct{}
NullStartSpanOption ...
func (NullStartSpanOption) Apply ¶
func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)
Apply ...
Click to show internal directories.
Click to hide internal directories.