-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This unifies both constructors in one with an options argument. The options argument allows to switch on error reporting, as discussed in #219. The change of the contructor signature is breaking, but only mildly so. Plus, the process collector is rarely used explicitly. I used Sourcegraph to search for public usages, with the following results: - 2 occurrences of NewProcessCollectorPIDFn, once in @discordianfish's glimpse, once in @fabxc's etcd_exporter (deprecated anyway). Both are Prom veterans and will simply do the one line change if needed. - 8 occurrences of NewProcessCollector, of which 7 are of the form NewProcessCollector(os.Getpid(), "") Thus, it's a very easy change, which I even hinted at in the doc comment. Signed-off-by: beorn7 <[email protected]>
- Loading branch information
beorn7
committed
Sep 7, 2018
1 parent
3525612
commit 773f502
Showing
3 changed files
with
114 additions
and
30 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