trace

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

trace

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// String ...
	String = log.String
)

Functions

func CustomTag

func CustomTag(key string, val interface{}) opentracing.Tag

CustomTag ...

func FromIncomingContext

func FromIncomingContext(ctx context.Context) opentracing.StartSpanOption

FromIncomingContext ...

func HeaderExtractor

func HeaderExtractor(hdr map[string][]string) opentracing.StartSpanOption

HeaderExtractor ...

func HeaderInjector

func HeaderInjector(ctx context.Context, hdr map[string][]string) context.Context

HeaderInjector ...

func MetadataExtractor

func MetadataExtractor(md map[string][]string) opentracing.StartSpanOption

MetadataExtractor ...

func MetadataInjector

func MetadataInjector(ctx context.Context, md metadata.MD) context.Context

MetadataInjector ...

func SetGlobalTracer

func SetGlobalTracer(tracer opentracing.Tracer)

SetGlobalTracer ...

func SpanFromContext

func SpanFromContext(ctx context.Context) opentracing.Span

SpanFromContext ...

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, op string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)

Start ...

func TagComponent

func TagComponent(component string) opentracing.Tag

TagComponent ...

func TagSpanKind

func TagSpanKind(kind string) opentracing.Tag

TagSpanKind ...

func TagSpanURL

func TagSpanURL(url string) opentracing.Tag

TagSpanURL ...

Types

type MetadataReaderWriter

type MetadataReaderWriter struct {
	MD map[string][]string
}

MetadataReaderWriter ...

func (MetadataReaderWriter) ForeachKey

func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error

ForeachKey ...

func (MetadataReaderWriter) Set

func (w MetadataReaderWriter) Set(key, val string)

Set ...

type NullStartSpanOption

type NullStartSpanOption struct{}

NullStartSpanOption ...

func (NullStartSpanOption) Apply

func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)

Apply ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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