ntracing

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 2 Imported by: 0

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

func NewChildSpanFromContext(
	ctx context.Context,
	name string,
) (opentracing.Span, bool)

NewChildSpanFromContext Generates a child span with given name if a span is found on the context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL