tracing

package
v0.0.0-...-849f898 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialOption

func DialOption(tracer opentracing.Tracer) grpc.DialOption

DialOption grpc client option

func JaegerGlobalTracer

func JaegerGlobalTracer() opentracing.Tracer

JaegerGlobalTracer ...

func JaegerUnaryClientInterceptor

func JaegerUnaryClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

JaegerUnaryClientInterceptor ...

func JaegerUnaryServerInterceptor

func JaegerUnaryServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

JaegerUnaryServerInterceptor ...

func NewJaegerTracer

func NewJaegerTracer(serviceName string, jagentHost string, samplerConfigs ...interface{}) (tracer opentracing.Tracer, closer io.Closer, err error)

NewJaegerTracer NewJaegerTracer for current service

func NewJaegerTracerEx

func NewJaegerTracerEx(svc, agentAddr, sampleType, sampleParm string) (opentracing.Tracer, io.Closer)

NewJaegerTracerEx ...

func ServerInterceptor

func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

ServerInterceptor grpc server option

Types

type MDReaderWriter

type MDReaderWriter struct {
	metadata.MD
}

MDReaderWriter metadata Reader and Writer

func (MDReaderWriter) ForeachKey

func (c MDReaderWriter) ForeachKey(handler func(key, val string) error) error

ForeachKey implements ForeachKey of opentracing.TextMapReader

func (MDReaderWriter) Set

func (c MDReaderWriter) Set(key, val string)

Set implements Set() of opentracing.TextMapWriter

Jump to

Keyboard shortcuts

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