Skip to content

Commit

Permalink
Merge pull request #123 from jamesross3/jross/deprecate-subregistry
Browse files Browse the repository at this point in the history
Deprecate Subregistry method on the RootRegistry interface.
  • Loading branch information
bmoylan authored Nov 10, 2018
2 parents b5d51c0 + 4a05653 commit 163672d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metrics/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ type RootRegistry interface {
// Subregistry returns a new subregistry of the root registry on which metrics can be registered.
//
// Specified tags will be always included in metrics emitted by a subregistry.
// Deprecated: Use metrics.FromContext(ctx) instead to get a child registry with tags. Using subregistries and metric names
// to namespace metrics is discouraged; metric tags should handle this instead.
Subregistry(prefix string, tags ...Tag) Registry
}

Expand Down

0 comments on commit 163672d

Please sign in to comment.