ruanweihong-aaa commented on PR #13946:
URL: https://github.com/apache/apisix/pull/13946#issuecomment-6359918168

   这里读取的是 NGINX 的上游耗时:
   ```lua
   local response_time = 
tonumber(get_upstream_token(ngx_var.upstream_response_time, idx))
   ```
   但 `ext-plugin-post-resp` 将耗时写在 `ctx.var.upstream_response_time` 中。
   
   我用真实 Go runner 测试:前置插件等待 200ms,上游耗时 400ms,CLIENT span 却记录了约 
603ms,把前置等待也算进去了。能否兼顾 ext-plugin 的计时来源,并补一个回归测试?
   
   
源码:[读取位置](https://github.com/apache/apisix/blob/75e4057eeec5a6c05f904cebdea125685e2ce4c8/apisix/plugins/opentelemetry.lua#L547-L549)
 · [ext-plugin 
写入位置](https://github.com/apache/apisix/blob/75e4057eeec5a6c05f904cebdea125685e2ce4c8/apisix/plugins/ext-plugin-post-resp.lua#L172)


-- 
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]

Reply via email to