Skip to content

Commit e709eb8

Browse files
committed
Merge branch '1.8.x' into 1.9.x
2 parents 662e0ef + 8348b60 commit e709eb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/PoolingHttpClientConnectionManagerMetricsBinder.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
* {@link org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager} for
3232
* asynchronous HTTP clients.
3333
* <p>
34-
* It monitors the overall connection pool state.
34+
* It monitors the overall connection pool state. Usage example: <pre>{@code
35+
* PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
36+
* HttpClient httpClient = HttpClientBuilder.create().setConnectionManager(connectionManager).build();
37+
* new PoolingHttpClientConnectionManagerMetricsBinder(connectionManager, "my-pool").bindTo(registry);
38+
* }</pre>
3539
*
3640
* @author Benjamin Hubert ([email protected])
3741
* @since 1.3.0

0 commit comments

Comments
 (0)