When run in debug mode, I think it is worth exploring running different validations on the registered metrics. Examples: - [ ] We could make sure a counter name does not end in `_total` as that is added [automatically](https://github.com/prometheus/client_rust/blob/5d6ed2c104d47aed45fd65f4a41fff37177f60e0/src/encoding/text.rs#L465) already. - [ ] `Registry::register` could ensure that no duplicate metric names are being registered. - [ ] `Registry::register` could ensure that the user did not provide an additional `.` in the `HELP` text. See https://github.com/prometheus/client_rust/issues/56 I think a goal worth striving for is keeping the dependency tree small for the sake of compile times.
When run in debug mode, I think it is worth exploring running different validations on the registered metrics.
Examples:
_totalas that is added automatically already.Registry::registercould ensure that no duplicate metric names are being registered.Registry::registercould ensure that the user did not provide an additional.in theHELPtext. See Registry::register should not automatically append a period to the help text #56I think a goal worth striving for is keeping the dependency tree small for the sake of compile times.