You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/23 08:02:23 UTC
[GitHub] [apisix] Firstsawyou commented on issue #2501: [discuss]: How to distinguish whether the 5xx status code (eg 500) comes from upstream or apisix
Firstsawyou commented on issue #2501:
URL: https://github.com/apache/apisix/issues/2501#issuecomment-715125015
> We may resort to the logging or tracing to determine this difference.
>
> The way you described is more like a debugging way, maybe it can be expanded to support more demands.
I think if we can know the source of the abnormal request (`upstream` or `apisix`) directly through the http response header, then we don't need to track the request or check the logger. For example: an http request returns a 500 status code. If relevant information is recorded in the response header, we can directly know where the problem occurred, and there is no need to track or view the record to determine the problem.
----------------------------------------------------------------
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:
users@infra.apache.org