Documentation ¶
Index ¶
Constants ¶
View Source
const ProtocolKey key = iota
ProtocolKey is the key used to denote a protocol in a `context.Context`.
Variables ¶
View Source
var ( // ProtocolTag specified the span tag used for denoting a protocol. ProtocolTag = "protocol" // UndefinedProtocol is the default ProtocolTag value used if no // ProtocolKey is present in the context. UndefinedProtocol = "__UNDEFINED_PROTOCOL__" )
Functions ¶
func GetTracerForAddr ¶
func GetTracerForAddr(addr string) (opentracing.Tracer, error)
GetTracerForAddr returns an `opentracing.Tracer` instance for the given address. Since the tracers are cached, it returns an existing one if it has been initialized before.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.