tailscale/tsweb
Will Norris 46980c9664 tsweb: ensure in-flight requests are always marked as finished
The inflight request tracker only starts recording a new bucket after
the first non-error request. Unfortunately, it's written in such a way
that ONLY successful requests are ever marked as being finished. Once a
bucket has had at least one successful request and begun to be tracked,
all subsequent error cases are never marked finished and always appear
as in-flight.

This change ensures that if a request is recorded has having been
started, we also mark it as finished at the end.

Updates tailscale/corp#19767

Signed-off-by: Will Norris <will@tailscale.com>
2024-05-03 15:36:14 -07:00
..
promvarz tsweb/promvarz: fix repeated expvar definition in test 2023-05-06 09:53:09 -07:00
varz tsweb/varz: add charset=utf-8 to varz handler 2024-03-27 19:56:22 -07:00
debug_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
debug.go Revert "tsweb: update ServeMux matching to 1.22.0 syntax (#11090)" (#11125) 2024-02-13 10:49:36 -08:00
log.go tsweb: propagate RequestID via context and entire request 2023-11-30 15:00:29 -05:00
request_id.go tsweb: switch to fastuuid for request ID generation 2024-04-09 14:05:20 -07:00
tsweb_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
tsweb.go tsweb: ensure in-flight requests are always marked as finished 2024-05-03 15:36:14 -07:00