Set up a buffered veneur client in the proxy
I am not sure this is the problem, but if it does lead to improved
numbers on proxy histogram ingestion, we should probably add metrics
around failed ingestions.
@@ -135,7 +135,10 @@ func NewProxyFromConfig(logger *logrus.Logger, conf ProxyConfig) (p Proxy, err e
p.TraceClient = trace.DefaultClient
if conf.SsfDestinationAddress != "" {
- p.TraceClient, err = trace.NewClient(conf.SsfDestinationAddress)
+ p.TraceClient, err = trace.NewClient(conf.SsfDestinationAddress,
+ trace.Buffered,
+ trace.FlushInterval(10*time.Second),
+ )
if err != nil {
logger.WithField("ssf_destination_address", conf.SsfDestinationAddress).
WithError(err).
