Documentation ¶
Overview ¶
Package tracing contains opentracing support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// TracingMDKey is the meta data key to carry tracing data.
TracingMDKey = "nptracing"
)
Functions ¶
func ExtractSpanCtx ¶
ExtractSpanCtx extracts span context from `md` or nil if not found.
func InjectSpanCtx ¶
InjectSpanCtx adds span context to `md` (a new one is created). `md` can be nil.
func SetSpanError ¶
SetSpanError set error on the span. If `err` is nil, then nop.
func SpanCtxFromCtx ¶
func SpanCtxFromCtx(ctx context.Context) ot.SpanContext
SpanCtxFromCtx gets span context from context. Returns nil if there is no span set.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package msgtracing contains msg middlewares to add opentracing support.
|
Package msgtracing contains msg middlewares to add opentracing support. |
Package rpctracing contains rpc middlewares to add opentracing support.
|
Package rpctracing contains rpc middlewares to add opentracing support. |
Click to show internal directories.
Click to hide internal directories.