tracing

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 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 traceability 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 Traceable added in v2.6.2

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

Traceable 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