Skip to content

Commit

Permalink
Merge pull request go-kit#450 from jkakar/patch-1
Browse files Browse the repository at this point in the history
Fix typo in graphite package
  • Loading branch information
peterbourgon authored Feb 7, 2017
2 parents c5e750d + 9e2ed61 commit 414b9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metrics/graphite/graphite.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Graphite struct {
logger log.Logger
}

// New returns a Statsd object that may be used to create metrics. Prefix is
// New returns a Graphite object that may be used to create metrics. Prefix is
// applied to all created metrics. Callers must ensure that regular calls to
// WriteTo are performed, either manually or with one of the helper methods.
func New(prefix string, logger log.Logger) *Graphite {
Expand Down
2 changes: 1 addition & 1 deletion metrics/graphite/graphite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestGauge(t *testing.T) {

func TestHistogram(t *testing.T) {
// The histogram test is actually like 4 gauge tests.
prefix, name := "statsd.", "histogram_test"
prefix, name := "graphite.", "histogram_test"
label, value := "abc", "def" // ignored for Graphite
re50 := regexp.MustCompile(prefix + name + `.p50 ([0-9\.]+) [0-9]+`)
re90 := regexp.MustCompile(prefix + name + `.p90 ([0-9\.]+) [0-9]+`)
Expand Down

0 comments on commit 414b9e6

Please sign in to comment.