Skip to content

Commit

Permalink
Deprecate Subregistry on the RootRegistry interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Ross committed Nov 10, 2018
1 parent 7fae951 commit 4a05653
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 4a05653

Please sign in to comment.