Use veneur prefix for internal metrics
@@ -165,6 +165,8 @@ func NewFromConfig(logger *logrus.Logger, conf Config) (*Server, error) {
}
stats.Namespace = "veneur."
+ ret.Statsd = stats
+
ret.SpanChan = make(chan *ssf.SSFSpan, conf.SpanChannelCapacity)
ret.TraceClient, err = trace.NewChannelClient(ret.SpanChan,
trace.ReportStatistics(stats, 1*time.Second, []string{"ssf_format:internal"}),
@@ -173,11 +175,6 @@ func NewFromConfig(logger *logrus.Logger, conf Config) (*Server, error) {
return ret, err
}
- ret.Statsd, err = statsd.NewBuffered(conf.StatsAddress, 1024)
- if err != nil {
- return ret, err
- }
-
// nil is a valid sentry client that noops all methods, if there is no DSN
// we can just leave it as nil
if conf.SentryDsn != "" {
