-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix behavior when adding a custom Gauge or Counter with a custom Regi…
…stry (#39) * fix: ensure AddCustomGauge and AddCustomCounter register the Gauge and Value in the correct registry Before that, the AddCustomGauge and AddCustomCounter would both register the respective Gauge and Counter in the default prometheus Registry, even if a custom one was set. Also, since this commit introduced a new simple mustRegister method on *Prometheus, it seemed logical to use it in the register function. * feat: add tests to check that custom counters and gauges are registered in the correct registry
- Loading branch information
Showing
2 changed files
with
57 additions
and
7 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