Skip to content

Commit 11bf261

Browse files
authored
Deprecate DefaultUriMapper and PoolingHttpClientConnectionManagerMetricsBinder in httpcomponents (#4862)
1 parent 62990bf commit 11bf261

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
*
3030
* @author Benjamin Hubert
3131
* @since 1.4.0
32+
* @deprecated as of 1.12.5 in favor of an
33+
* {@link org.apache.hc.client5.http.protocol.HttpClientContext} value with
34+
* {@link io.micrometer.core.instrument.binder.httpcomponents.hc5.ApacheHttpClientObservationConvention#URI_TEMPLATE_ATTRIBUTE}
35+
* as key name.
3236
*/
37+
@Deprecated
3338
public class DefaultUriMapper implements Function<HttpRequest, String> {
3439

3540
/**

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

+3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
*
4444
* @author Benjamin Hubert ([email protected])
4545
* @since 1.3.0
46+
* @deprecated as of 1.12.5 in favor of HttpComponents 5.x and
47+
* {@link io.micrometer.core.instrument.binder.httpcomponents.hc5.PoolingHttpClientConnectionManagerMetricsBinder}.
4648
*/
49+
@Deprecated
4750
public class PoolingHttpClientConnectionManagerMetricsBinder implements MeterBinder {
4851

4952
private final ConnPoolControl<HttpRoute> connPoolControl;

0 commit comments

Comments
 (0)