Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TracingComponentTag 跟踪组件标签 TracingComponentTag = opentracing.Tag{Key: string(ext.Component), Value: "gRPC"} )
Functions ¶
func OpenTracingClientInterceptor ¶
func OpenTracingClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
OpenTracingClientInterceptor 重写客户端解析器(透传数据traceId等)
func OpentracingServerInterceptor ¶
func OpentracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
OpentracingServerInterceptor opentracing的服务端解析器(透传数据traceId等)
Types ¶
type MDReaderWriter ¶
MDReaderWriter 读取元数据
func (MDReaderWriter) ForeachKey ¶
func (c MDReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey 遍历所有的key并调用handler
Click to show internal directories.
Click to hide internal directories.