-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scope: add ScopeWithTags() method. (#43)
This adds a `ScopeWithTags()` method that allows the caller to set default tags on the scope. Child scopes and metrics will inherit default tags from parents, but can still override them. Implementation note: I reshuffled all of the non-`WithTags` methods to delegate to `WithTags` methods to ensure the default tags are always considered.
- Loading branch information
Showing
3 changed files
with
110 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters