Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a "factory" to make promauto work for custom registries
Also, update the package documentation. The concerns about the global registry aren't really valid anymore because promauto now also works with custom registries. The musings about the http.DefaultMux are more a digression and shouldn't be in a doc comment. Signed-off-by: beorn7 <beorn@grafana.com>
- Loading branch information
Showing
1 changed file
with
209 additions
and
77 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