Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJaegerTracer ¶
func NewJaegerTracer(serviceName string, jagentHost string) (tracer opentracing.Tracer, closer io.Closer, err error)
NewJaegerTracer NewJaegerTracer for current service TODO : 配置化
Types ¶
type MDReaderWriter ¶
MDReaderWriter metadata Reader and Writer 封装carrier,必须实现ForeachKey(通常服务端)/Set方法(通常客户端)
func (MDReaderWriter) ForeachKey ¶
func (c MDReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey implements ForeachKey of opentracing.TextMapReader,需要实现ForeachKey方法(Extracter)
func (MDReaderWriter) Set ¶
func (c MDReaderWriter) Set(key, val string)
Set implements Set() of opentracing.TextMapWriter,需要实现Set方法(Injecter)
Click to show internal directories.
Click to hide internal directories.