opentracing_helper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidTracerDriver = errors.New("invalid tracer driver")
)

Functions

func GetHTTPClient added in v1.1.28

func GetHTTPClient(srv IsTracedGetter) *http.Client

func GetSpanFromRequest added in v1.1.28

func GetSpanFromRequest(r *http.Request, name string) opentracing.Span

func InjectSpanToRequest added in v1.1.28

func InjectSpanToRequest(span opentracing.Span, r *http.Request)

func Middleware added in v1.1.28

func Middleware(srv interface{}, name string, options ...nethttp.MWOption) http.HandlerFunc

func NewRequester added in v1.1.28

func NewTracer

func NewTracer(name string, args ...interface{}) (opentracing.Tracer, io.Closer, error)

Types

type ComponentNameGetter added in v1.1.28

type ComponentNameGetter interface {
	ComponentName() string
}

type IsTracedGetter added in v1.1.28

type IsTracedGetter interface {
	IsTraced(*http.Request) bool
}

type JaegerTracerFactory

type JaegerTracerFactory struct{}

func (*JaegerTracerFactory) New

func (jtf *JaegerTracerFactory) New(args ...interface{}) (opentracing.Tracer, io.Closer, error)

type TracerFactory

type TracerFactory interface {
	New(args ...interface{}) (opentracing.Tracer, io.Closer, error)
}

type TracerOption

type TracerOption struct {
	*viper.Viper
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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