Skip to content

Commit

Permalink
fix(ddtrace/tracer): use statsd.NoOpClientDirect in WithTestDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio committed Dec 18, 2024
1 parent 82073c0 commit 1e947d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1e947d6

Please sign in to comment.