janiussyafiq opened a new pull request, #13940: URL: https://github.com/apache/apisix/pull/13940
### Description `ext-plugin-post-resp` sends the upstream request with lua-resty-http, so the nginx proxy module never sets `$upstream_addr` and `$upstream_response_time`. Loggers built on `log-util` then report no `upstream` and no `upstream_latency`, and the whole upstream round trip is attributed to `apisix_latency`. This PR fills `ctx.var.upstream_addr` and `ctx.var.upstream_response_time` right after the upstream call, and adds a test that checks both fields reach `http-logger`. Supersedes #13018 (same approach, credit to @MariaLapovska; that PR went stale waiting for tests). #### Which issue(s) this PR fixes: Fixes #13016 ### Checklist - [x] I have explained the need for this PR and the problem it solves - [x] I have explained the changes or the new features added to this PR - [x] I have added tests corresponding to this change - [ ] I have updated the documentation to reflect this change - [x] I have verified that this change is backward compatible (If not, please discuss on the [APISIX mailing list](https://github.com/apache/apisix/tree/master#community) first) -- 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]
