trace

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpan added in v1.1.0

func ContextWithSpan(ctx context.Context, span opentracing.Span) context.Context

func FromIncomingContext

func FromIncomingContext(ctx context.Context) (context.Context, opentracing.StartSpanOption)

rpc: FromIncomingContext

func FromOutgoingContext

func FromOutgoingContext(ctx context.Context) (context.Context, metadata.MD)

rpc: FromOutgoingContext

func HeaderExtractor

func HeaderExtractor(ctx context.Context, carrier map[string][]string) (context.Context, opentracing.StartSpanOption)

HTTP: HeaderExtractor

func MetadataInjector

func MetadataInjector(ctx context.Context, md metadata.MD) error

rpc: MetadataInjector

func SetGlobalTracer

func SetGlobalTracer(tracer opentracing.Tracer)

func SpanFromContext

func SpanFromContext(ctx context.Context) opentracing.Span

func TraceID

func TraceID(ctx context.Context) string

Types

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

func New

func New() *Metadata

func (*Metadata) ForeachKey

func (md *Metadata) ForeachKey(handler func(key, val string) error) error

func (*Metadata) Set

func (md *Metadata) Set(key, val string)

type NullStartSpanOption

type NullStartSpanOption struct{}

func (NullStartSpanOption) Apply

func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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