diff --git a/ddtrace/tracer/option.go b/ddtrace/tracer/option.go index 8184ed29b0..200ba8719d 100644 --- a/ddtrace/tracer/option.go +++ b/ddtrace/tracer/option.go @@ -1361,7 +1361,7 @@ func WithHeaderTags(headerAsTags []string) StartOption { func WithTestDefaults(statsdClient any) StartOption { return func(c *config) { if statsdClient == nil { - statsdClient = &statsd.NoOpClient{} + statsdClient = &statsd.NoOpClientDirect{} } c.statsdClient = statsdClient.(internal.StatsdClient) c.transport = newDummyTransport()