Firstsawyou commented on a change in pull request #2817:
URL: https://github.com/apache/apisix/pull/2817#discussion_r528718641



##########
File path: apisix/init.lua
##########
@@ -629,6 +630,14 @@ end
 function _M.http_header_filter_phase()
     core.response.set_header("Server", ver_header)
 
+    local status_code = tonumber(get_var("upstream_status"))
+    if status_code then
+        if status_code >= 500 and status_code <= 599 then

Review comment:
       The main purpose here is to distinguish whether the 5xx status code 
comes from APISIX or upstream. If we want to record other response status 
codes, we need more discussion.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to