Documentation ¶
Index ¶
- func NewEntryPoint(ctx context.Context, t *tracing.Tracing, entryPointName string, ...) http.Handler
- func NewForwarder(ctx context.Context, router, service string, next http.Handler) http.Handler
- func NewWrapper(next http.Handler, name string, spanKind ext.SpanKindEnum) http.Handler
- func Wrap(ctx context.Context, constructor alice.Constructor) alice.Constructor
- func WrapEntryPointHandler(ctx context.Context, tracer *tracing.Tracing, entryPointName string) alice.Constructor
- type Tracable
- type Wrapper
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 ¶
NewForwarder creates a new forwarder middleware that traces the outgoing request.
func NewWrapper ¶
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.
Click to show internal directories.
Click to hide internal directories.