Skip to content

SlowInvocationLogger耗时统计不正确 #3727

@JedrekWang

Description

@JedrekWang

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

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

建议:将VertX建联的耗时也统计到SlowInvocationLogger里面

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions