options.go
func ErrorHandler(h func(error)) Option {
	return Option(func(c *config) {
		c.Conn.ErrorHandler = h
	})
}
func ErrorHandler(h func(error)) Option {
	return Option(func(c *config) {
		c.Conn.ErrorHandler = h
	})
}
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().
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 () .