Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagTraceId = "trace.traceid" TagSpanId = "trace.spanid" TagSampled = "trace.sampled" )
Variables ¶
View Source
var (
// NoopTags is a trivial, minimum overhead implementation of Tags for which all operations are no-ops.
NoopTags = &noopTags{}
)
Functions ¶
func OpentracingServerInterceptor ¶
func OpentracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
OpentracingServerInterceptor rewrite server's interceptor with open tracing
Types ¶
type MDReaderWriter ¶
MDReaderWriter metadata Reader and Writer
type Tags ¶
type Tags interface { // Set sets the given key in the metadata tags. Set(key string, value interface{}) Tags // Has checks if the given key exists. Has(key string) bool // Values returns a map of key to values. // Do not modify the underlying map, please use Set instead. Values() map[string]interface{} }
Tags is the interface used for storing request tags between Context calls. The default implementation is *not* thread safe, and should be handled only in the context of the request.
Click to show internal directories.
Click to hide internal directories.