SlowInvocationLogger 记录了 慢请求 各个阶段的耗时,发现如下问题,记录日志如下:

可见总体耗时为21s,但是下面各个步骤加起来的时间很短
通过本地复现发现,在通过Vert.X建立HttpClientRequest,restClientRequest.end()后,如果对应的ip:port无法成功建联,则会报错 Failed to send request, local not connected, remote: xxx 时,此时,finishWriteToBuffer 为0,所以send request 及后续阶段都为0ms
建议:将VertX建联的耗时也统计到SlowInvocationLogger里面