Versions in this module Expand all Collapse all v1 v1.1.2 Mar 19, 2024 v1.1.1 Mar 14, 2024 Changes in this version + const StatusClientClosedRequest v1.0.0 Jun 23, 2023 Changes in this version + var BodySizeBuckets = []float64 + var DefBuckets = []float64 + func ExtractSampledTraceID(ctx context.Context) (string, bool) + func ExtractTraceID(ctx context.Context) (string, bool) + func MakeLabelValue(path string) string + type Func func(http.Handler) http.Handler + func (m Func) Wrap(next http.Handler) http.Handler + type HTTPAuth struct + func NewHTTPAuth(log log.Logger) *HTTPAuth + func (h HTTPAuth) Wrap(next http.Handler) http.Handler + type HTTPFakeAuth struct + func (h HTTPFakeAuth) Wrap(next http.Handler) http.Handler + type Instrument struct + func NewInstrument(routeMatcher RouteMatcher, defBuckets []float64, prefix string) (*Instrument, error) + func (i Instrument) Wrap(next http.Handler) http.Handler + type Interface interface + Wrap func(http.Handler) http.Handler + func Merge(middlewares ...Interface) Interface + type Log struct + func NewLoggingMiddleware(logger log.Logger) *Log + func (l Log) Wrap(next http.Handler) http.Handler + type RequestLimits struct + func NewRequestLimitsMiddleware(maxRequestBodySize int64) *RequestLimits + func (l RequestLimits) Wrap(next http.Handler) http.Handler + type RouteMatcher interface + Match func(*http.Request, *mux.RouteMatch) bool + type Tracer struct + func NewTracer(routeMatcher RouteMatcher, tracer opentracing.Tracer) *Tracer + func (t Tracer) Wrap(next http.Handler) http.Handler