Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #7 from adrianco/master
Browse files Browse the repository at this point in the history
Access name of histogram
  • Loading branch information
codahale committed Feb 20, 2015
2 parents 8118f0d + 6e0a50c commit 518ef00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ type Histogram struct {
rw sync.RWMutex
}

// Name returns the name of the histogram
func (h *Histogram) Name() string {
return h.name
}

// RecordValue records the given value, or returns an error if the value is out
// of range.
// Returned error values are of type Error.
Expand Down

0 comments on commit 518ef00

Please sign in to comment.