| Index: go/metrics2/counter.go
|
| diff --git a/go/metrics2/counter.go b/go/metrics2/counter.go
|
| index 3752e2c291cb24008f70ed601e4f582c35afb377..c55b259c77a60ea2838e922770859c1cbe7cac00 100644
|
| --- a/go/metrics2/counter.go
|
| +++ b/go/metrics2/counter.go
|
| @@ -12,23 +12,9 @@ type Counter struct {
|
| mtx sync.Mutex
|
| }
|
|
|
| -// NewCounter creates and returns a new Counter.
|
| -func (c *Client) NewCounter(name string, tags map[string]string) *Counter {
|
| - // Add the name to the tags.
|
| - t := make(map[string]string, len(tags)+1)
|
| - for k, v := range tags {
|
| - t[k] = v
|
| - }
|
| - t["name"] = name
|
| - return &Counter{
|
| - m: c.GetInt64Metric(MEASUREMENT_COUNTER, t),
|
| - mtx: sync.Mutex{},
|
| - }
|
| -}
|
| -
|
| -// NewCounter creates and returns a new Counter using the default client.
|
| -func NewCounter(name string, tags map[string]string) *Counter {
|
| - return DefaultClient.NewCounter(name, tags)
|
| +// GetCounter creates and returns a new Counter using the default client.
|
| +func GetCounter(name string, tags map[string]string) *Counter {
|
| + return DefaultClient.GetCounter(name, tags)
|
| }
|
|
|
| // Inc increments the counter by the given quantity.
|
|
|