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 Traceable
- 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 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.
Click to show internal directories.
Click to hide internal directories.