Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + type DatadogMiddleware struct + func Middleware(opts ...Option) *DatadogMiddleware + func (m *DatadogMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Option func(*config) + func WithAnalytics(on bool) Option + func WithAnalyticsRate(rate float64) Option + func WithResourceNamer(namer func(r *http.Request) string) Option + func WithServiceName(name string) Option + func WithSpanOptions(opts ...ddtrace.StartSpanOption) Option + func WithStatusCheck(fn func(statusCode int) bool) Option