use of com.navercorp.pinpoint.plugin.httpclient4.RequestProducerGetter in project pinpoint by naver.
the class DefaultClientExchangeHandlerImplStartMethodInterceptor method getHost.
private NameIntValuePair<String> getHost(final Object target) {
if (!(target instanceof RequestProducerGetter)) {
return null;
}
final HttpAsyncRequestProducer producer = ((RequestProducerGetter) target)._$PINPOINT$_getRequestProducer();
final HttpHost httpHost = producer.getTarget();
if (httpHost != null) {
return new NameIntValuePair<String>(httpHost.getHostName(), httpHost.getPort());
} else {
return null;
}
}
Aggregations