tracer

package
v0.0.0-...-ab065fd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceFromHeader

func TraceFromHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)

TraceFromHeader opentracing从header获取,写入context,适用获取http

func TraceIntoContext

func TraceIntoContext(ctx context.Context, name string) (context.Context, opentracing.Span, error)

TraceIntoContext opentracing从context获取,写入context,适用RPC

func TraceToHeader

func TraceToHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)

TraceToHeader opentracing从context获取,写入http,适用将调用http

Types

type Tracer

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

func New

func New(traceAddress, serviceName string) *Tracer

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) Init

func (t *Tracer) Init()

Jump to

Keyboard shortcuts

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