tracing

package
v2.0.0-alpha7+incompat... Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntryPoint

func NewEntryPoint(ctx context.Context, t *tracing.Tracing, entryPointName string, next http.Handler) http.Handler

NewEntryPoint creates a new middleware that the incoming request.

func NewForwarder

func NewForwarder(ctx context.Context, router, service string, next http.Handler) http.Handler

NewForwarder creates a new forwarder middleware that traces the outgoing request.

func NewWrapper

func NewWrapper(next http.Handler, name string, spanKind ext.SpanKindEnum) http.Handler

NewWrapper returns a http.Handler struct

func Wrap

func Wrap(ctx context.Context, constructor alice.Constructor) alice.Constructor

Wrap adds tracability to an alice.Constructor.

func WrapEntryPointHandler

func WrapEntryPointHandler(ctx context.Context, tracer *tracing.Tracing, entryPointName string) alice.Constructor

WrapEntryPointHandler Wraps tracing to alice.Constructor.

Types

type Tracable

type Tracable interface {
	GetTracingInformation() (name string, spanKind ext.SpanKindEnum)
}

Tracable embeds tracing information.

type Wrapper

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

Wrapper is used to wrap http handler middleware.

func (*Wrapper) ServeHTTP

func (w *Wrapper) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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