Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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