Documentation ¶
Index ¶
- func DialOption(tracer opentracing.Tracer) grpc.DialOption
- func JaegerGlobalTracer() opentracing.Tracer
- func JaegerUnaryClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
- func JaegerUnaryServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- func NewJaegerTracer(serviceName string, jagentHost string, samplerConfigs ...interface{}) (tracer opentracing.Tracer, closer io.Closer, err error)
- func NewJaegerTracerEx(svc, agentAddr, sampleType, sampleParm string) (opentracing.Tracer, io.Closer)
- func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- type MDReaderWriter
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 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 ¶
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
Click to show internal directories.
Click to hide internal directories.