Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more factory methods to
PrometheusExpositionService
(#5134)
Motivation: It is very common for users to specify `CollectorRegistry.defaultRegistry` when creating a `PrometheusExpositionService` or its builder. Modifications: - Added two shortcut methods: - `of()` -> `of(CollectorRegistry.defaultRegistry)` - `builder()` -> `builder(CollectorRegistry.defaultRegistry)` Result: - Much more convenient and less verbose when creating a `PrometheusExpositionService`
- Loading branch information