Documentation ¶
Index ¶
- Variables
- func ClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
- func DialOption(tracer opentracing.Tracer) grpc.DialOption
- func NewJaegerTracer(serviceName string, jagentHost string) (tracer opentracing.Tracer, closer io.Closer, err error)
- func OpenTracingClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
- func OpentracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- func ServerOption(tracer opentracing.Tracer) grpc.ServerOption
- type JaegerConfiguration
- type MDReaderWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //TracingComponentTag tags TracingComponentTag = opentracing.Tag{Key: string(ext.Component), Value: "gRPC"} )
Functions ¶
func ClientInterceptor ¶
func ClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
func DialOption ¶
func DialOption(tracer opentracing.Tracer) grpc.DialOption
func NewJaegerTracer ¶
func NewJaegerTracer(serviceName string, jagentHost string) (tracer opentracing.Tracer, closer io.Closer, err error)
NewJaegerTracer NewJaegerTracer for current service
func OpenTracingClientInterceptor ¶
func OpenTracingClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
OpenTracingClientInterceptor rewrite client's interceptor with open tracing
func OpentracingServerInterceptor ¶
func OpentracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
OpentracingServerInterceptor rewrite server's interceptor with open tracing
func ServerInterceptor ¶
func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
func ServerOption ¶
func ServerOption(tracer opentracing.Tracer) grpc.ServerOption
Types ¶
type JaegerConfiguration ¶
type JaegerConfiguration struct { jaegercfg.Configuration // contains filtered or unexported fields }
type MDReaderWriter ¶
MDReaderWriter metadata Reader and Writer
func (MDReaderWriter) ForeachKey ¶
func (c MDReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey range all keys to call handler
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.