Skip to content

Commit 04bdfd4

Browse files
committed
docs: describe WithStatsd behavior
1 parent e5d8db8 commit 04bdfd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

metrics/datadog.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ func WithoutTelemetry() Option {
3131
}
3232
}
3333

34+
// WithStatsd sets a custom configured statsd client. This lets you set any
35+
// options that aren't directly supported by the metrics package. When used,
36+
// this ignores the address and namespace arguments to NewDataDogClient.
3437
func WithStatsd(s *statsd.Client) Option {
3538
return func(o *Options) error {
3639
o.Statsd = s

0 commit comments

Comments
 (0)