Versions in this module Expand all Collapse all v1 v1.0.0 Nov 1, 2024 Changes in this version + func BeforeHandle[T any, WT Router](cfg *Config, router T, wrapRouter func(T) WT, w http.ResponseWriter, ...) (http.ResponseWriter, *http.Request, func(), bool) + type Config struct + func NewConfig(opts ...Option) *Config + type Option func(*Config) + func WithAnalytics(on bool) Option + func WithAnalyticsRate(rate float64) Option + func WithHeaderTags(headers []string) Option + func WithServiceName(name string) Option + func WithSpanOptions(opts ...ddtrace.StartSpanOption) Option + type Param interface + GetKey func() string + GetValue func() string + type Router interface + Lookup func(method string, path string) (any, []Param, bool)