Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SpanKey = spanKey("span")
SpanKey is the key to use to store the span in request context
Functions ¶
func NewChildSpanAndContext ¶ added in v0.2.1
func NewChildSpanAndContext( ctx context.Context, name string, ) (context.Context, opentracing.Span)
NewChildSpanAndContext generates a child span with given name if a span is found on the context and creates a new context from that child span
func NewChildSpanFromContext ¶
NewChildSpanFromContext Generates a child span with given name if a span is found on the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.