Open Augustyniak opened 2 years ago
cc @jmarantz
related to #23866
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Description: Envoy Mobile does not increment
upstream_rq_timeout
virtual cluster counter when any of the request it perform times out. For the record, the Envoy Mobile library enables the two following types of timeouts:per_try_timeout
andper_try_idle_timeout
.Instead of incrementing
upstream_rq_timeout
stat, every time Envoy Mobile's request times outupstream_rx_5xx
andupstream_rq_504
virtual cluster counters are incremented. From the perspective of mobile clients (Envoy Mobile library) it's not desired to treat timeouts as504
failures - mobile clients want to see HTTP status codes that come from the server only and do not want Envoy Mobile (or Envoy) to emit its own status codes.Proposal:
upstream_rq_timeout
stat so that it gets incremented when a request timeouts due to eitherper_try_timeout
orper_try_idle_timeout
timeout.upstream_rx_5xx
andupstream_rq_504
virtual cluster stats when an Envoy Mobile request timeouts due to either of the aforementioned timeout types.Relevant Links: Currently available virtual cluster stats are listed at https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#virtual-clusters.