diff --git a/resilience4j-prometheus/README.adoc b/resilience4j-prometheus/README.adoc index f5985f914d..92c60d8403 100644 --- a/resilience4j-prometheus/README.adoc +++ b/resilience4j-prometheus/README.adoc @@ -55,7 +55,7 @@ final RateLimiter foo = rateLimiterRegistry.rateLimiter("foo"); final RateLimiter boo = rateLimiterRegistry.rateLimiter("boo"); // Registering metrics in prometeus CollectorRegistry -new RateLimiterExports(rateLimiterRegistry).registerregistry(); +new RateLimiterExports(rateLimiterRegistry).register(registry); -- For both it is possible to use just a collection of breakers and limiters instead of registry.