Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 v1.0.0 Jul 6, 2026 Changes in this version + func AccessLog(logger *slog.Logger) httpx.Middleware + func Requests(m Metrics) httpx.Middleware + func Trace(tr Tracer) httpx.Middleware + type Metrics interface + IncCounter func(name string, value float64, labels map[string]string) + ObserveRequest func(route, method string, status int, dur time.Duration, respBytes int) + SetGauge func(name string, value float64, labels map[string]string) + var NoOp Metrics = noOp{} + type Span interface + End func() + RecordError func(err error) + SetAttr func(key, value string) + type Tracer interface + Extract func(ctx context.Context, carrier string) context.Context + Inject func(ctx context.Context) string + StartSpan func(ctx context.Context, name string) (context.Context, Span) + var NoOpTracer Tracer = noopTracer{}