/** * Used by {@link HttpServerHandler#handleReceive(TraceContext.Extractor, Object, Object)} to add * remote socket information about the client. By default, this tries to parse the {@link * #parseClientIpFromXForwardedFor(Object, Span) forwarded IP}. Override to add client socket * information when forwarded info is not available. * * <p>Aside: the ability to parse socket information on server request objects is likely even if * it is not as likely on the client side. This is because client requests are often parsed before * a network route is chosen, whereas server requests are parsed after the network layer. * * @since 5.2 */ public boolean parseClientIpAndPort(Req req, Span span) { return parseClientIpFromXForwardedFor(req, span); }