tracing

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log *log.Logger
	Env []string
}

type Constructor

type Constructor func(config Config) (Tracing, error)

type Noop

type Noop struct{}

func (Noop) AttachTag

func (n Noop) AttachTag(ctx context.Context, key string, value interface{})

func (Noop) CreateRootMux

func (n Noop) CreateRootMux() (*mux.Router, http.Handler)

func (Noop) DynamicFields

func (n Noop) DynamicFields() []log.DynamicFields

func (Noop) WrapRoundTrip

func (n Noop) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper

type Registry

type Registry struct {
	Constructors map[string]Constructor
}

func (*Registry) New

func (r *Registry) New(name string, config Config) (Tracing, error)

type Tracing

type Tracing interface {
	WrapRoundTrip(rt http.RoundTripper) http.RoundTripper
	AttachTag(ctx context.Context, key string, value interface{})
	DynamicFields() []log.DynamicFields
	CreateRootMux() (*mux.Router, http.Handler)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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