Skip to content

Commit

Permalink
rename name => collectorName
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 1, 2019
1 parent bfe7105 commit 0f96cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/statsd_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type StatsdCollectorConfig struct {
}

// InitializeStatsdCollector will start publishing metrics in the form {config.Prefix}.{name}.{updateOption.Name}
func InitializeStatsdCollector(config *StatsdCollectorConfig, name string) error {
func InitializeStatsdCollector(config *StatsdCollectorConfig, collectorName string) error {
flushBytes := config.FlushBytes
if flushBytes == 0 {
flushBytes = LANStatsdFlushBytes
Expand All @@ -48,7 +48,7 @@ func InitializeStatsdCollector(config *StatsdCollectorConfig, name string) error

c, _ := statsd.NewBufferedClient(config.StatsdAddr, config.Prefix, 1*time.Second, flushBytes)
// TODO Add logger for error
instance = &statsdClient{client: c, collectorName: name, sampleRate: sampleRate}
instance = &statsdClient{client: c, collectorName: collectorName, sampleRate: sampleRate}
return nil
}

Expand Down

0 comments on commit 0f96cf2

Please sign in to comment.