xianshun163 commented on issue #6029: URL: https://github.com/apache/apisix/issues/6029#issuecomment-1068669911
@zhendongcmss @tzssangglass Because the `apisix_latency` include read contents from client, not ONLY apisix process time. do you mean read contents from client cost a lot of time? Why does it take so much time in read data. > ### Issue description > Because the `apisix_latency` include read contents from client, not ONLY apisix process time. It is very confused on the dashbord and got resault that apisix lead to high latency. > > https://github.com/apache/apisix/blob/aff5d825aaea12eab312e65e82d060ab9be9b06f/apisix/utils/log-util.lua#L189 > > > https://github.com/apache/apisix/blob/aff5d825aaea12eab312e65e82d060ab9be9b06f/apisix/plugins/prometheus/exporter.lua#L164 > >  > > ### Environment > * apisix version (cmd: `apisix version`): master branch > * OS (cmd: `uname -a`): > * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): > * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): > * apisix-dashboard version, if have: > * the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): > * luarocks version, if the issue is about installation (cmd: `luarocks --version`): > > ### Steps to reproduce > I suggest use "apisix-and-client" type. > > ### Actual result > nil > > ### Error log > nil > > ### Expected result > _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
