From 06665d048d2b08ec979f24c1e50028f61df7459c Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Mon, 1 May 2017 11:04:53 -0500 Subject: [PATCH] missing comments --- config.go | 4 +++- stats.go | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index ebaf47e33..3c2f39f6a 100644 --- a/config.go +++ b/config.go @@ -28,7 +28,9 @@ const ( // DefaultInternalPort the port the nodes intercommunicate on. DefaultInternalPort = "14000" - DefaultMetrics = "nop" + + // DefaultMetrics sets the internal metrics to no op + DefaultMetrics = "nop" ) // Config represents the configuration for the command. diff --git a/stats.go b/stats.go index 450b9011f..cefb0af3b 100644 --- a/stats.go +++ b/stats.go @@ -107,6 +107,7 @@ func (c *ExpvarStatsClient) Count(name string, value int64) { c.m.Add(name, value) } +// CountWithCustomTags Tracks the number of times something occurs per second with custom tags func (c *ExpvarStatsClient) CountWithCustomTags(name string, value int64, tags []string) { c.m.Add(name, value) } @@ -164,6 +165,7 @@ func (a MultiStatsClient) Count(name string, value int64) { } } +// CountWithCustomTags Tracks the number of times something occurs per second with custom tags func (a MultiStatsClient) CountWithCustomTags(name string, value int64, tags []string) { for _, c := range a { c.CountWithCustomTags(name, value, tags)