Documentation
¶
Index ¶
- func AddTracer(svcName, spanName string, ctx context.Context, header http.Header, ...) context.Context
- func ClientDialOption(parentTracer opentracing.Tracer) grpc.DialOption
- func InitJaeger(service string) (opentracing.Tracer, io.Closer)
- func InitZipkin(service string) (opentracing.Tracer, reporter.Reporter)
- func ServerDialOption(tracer opentracing.Tracer) grpc.ServerOption
- func WriteSubSpan(span opentracing.Span, subSpanName string)
- type TextMapReader
- type TextMapWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTracer ¶
func AddTracer(svcName, spanName string, ctx context.Context, header http.Header, tracer opentracing.Tracer, tags map[string]string) context.Context
TracerWrapper tracer wrapper
func ClientDialOption ¶
func ClientDialOption(parentTracer opentracing.Tracer) grpc.DialOption
RPC Client Dial Option
func InitZipkin ¶
func InitZipkin(service string) (opentracing.Tracer, reporter.Reporter)
初始化 zipkin
func ServerDialOption ¶
func ServerDialOption(tracer opentracing.Tracer) grpc.ServerOption
RPC Server Dial Option
Types ¶
type TextMapReader ¶
func (TextMapReader) ForeachKey ¶
func (t TextMapReader) ForeachKey(handler func(key, val string) error) error
读取metadata中的span信息
type TextMapWriter ¶
text map writer
Click to show internal directories.
Click to hide internal directories.