Documentation ¶
Index ¶
- func NewEntryPointMiddleware(ctx context.Context, next http.Handler, registry metrics.Registry, ...) http.Handler
- func NewRetryListener(retryMetrics retryMetrics, serviceName string) retry.Listener
- func NewServiceMiddleware(ctx context.Context, next http.Handler, registry metrics.Registry, ...) http.Handler
- func WrapEntryPointHandler(ctx context.Context, registry metrics.Registry, entryPointName string) alice.Constructor
- func WrapServiceHandler(ctx context.Context, registry metrics.Registry, serviceName string) alice.Constructor
- type RetryListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEntryPointMiddleware ¶
func NewEntryPointMiddleware(ctx context.Context, next http.Handler, registry metrics.Registry, entryPointName string) http.Handler
NewEntryPointMiddleware creates a new metrics middleware for an Entrypoint.
func NewRetryListener ¶
NewRetryListener instantiates a MetricsRetryListener with the given retryMetrics.
func NewServiceMiddleware ¶
func NewServiceMiddleware(ctx context.Context, next http.Handler, registry metrics.Registry, serviceName string) http.Handler
NewServiceMiddleware creates a new metrics middleware for a Service.
func WrapEntryPointHandler ¶
func WrapEntryPointHandler(ctx context.Context, registry metrics.Registry, entryPointName string) alice.Constructor
WrapEntryPointHandler Wraps metrics entrypoint to alice.Constructor.
func WrapServiceHandler ¶
func WrapServiceHandler(ctx context.Context, registry metrics.Registry, serviceName string) alice.Constructor
WrapServiceHandler Wraps metrics service to alice.Constructor.
Types ¶
type RetryListener ¶
type RetryListener struct {
// contains filtered or unexported fields
}
RetryListener is an implementation of the RetryListener interface to record RequestMetrics about retry attempts.
Click to show internal directories.
Click to hide internal directories.