func ErrorHandler(h func(error)) Option {
	return Option(func(c *config) {
		c.Conn.ErrorHandler = h
	})
}
ErrorHandler sets the function called when an error happens when sending
metrics (e.g. the StatsD daemon is not listening anymore).

By default, these errors are ignored.  This option is ignored in
Client.Clone().
package statsd
import (
	"bytes"
	"strings"
	"time"
)
type config struct {
	Conn   connConfig
	Client clientConfig
}
type clientConfig struct {
	Muted  bool
	Rate   float32
	Prefix string
	Tags   []tag
}
type connConfig struct {
	Addr          string
	ErrorHandler  func(error)
	FlushPeriod   time.Duration
	MaxPacketSize int
	Network       string
	TagFormat     TagFormat
}
type Option func(*config)
func Address(addr string) Option {
	return Option(func(c *config) {
		c.Conn.Addr = addr
	})
}