swagger-stats
swagger-stats copied to clipboard
Request timeout
When the server never gives a response (the request times out for whatever reason), api_all_request_in_processing_total
is never decreased. Should I add a timeout to it? It can be long e.g. 250s, we could cancel it in countResponse
. The point for this would be to pinpoint long-standing or stuck requests but they all time out after some time.
The current workaround is querying with
api_all_request_in_processing_total - min_over_time(api_all_request_in_processing_total[5m])
Gonna test this https://github.com/gombosg/swagger-stats/tree/inflight-timeout
@sv2 there is a HTTP timeout on most clients but Node.js also has a default setting of 120s. Does swagger-stats record if the socket times out? Or it simply counts as a server error?