You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tsweb
Paul Scott 646990a7d0 tsweb: log once per request
StdHandler/retHandler would previously emit one log line for each request.
If there were multiple StdHandler in the chain, there would be one log line
per instance of retHandler.

With this change, only the outermost StdHandler/logHandler actually logs the
request or invokes OnStart or OnCompletion callbacks. The error-rendering part
of retHandler lives on in errorHandler, and errorHandler passes those errors up
the stack to logHandler through a callback that logHandler places in the
request.Context().

Updates tailscale/corp#19999

Signed-off-by: Paul Scott <paul@tailscale.com>
4 months ago
..
promvarz derp/xdp,cmd/xdpderper: initial skeleton (#12390) 5 months ago
varz tsweb/varz: add charset=utf-8 to varz handler 8 months ago
debug.go Revert "tsweb: update ServeMux matching to 1.22.0 syntax (#11090)" (#11125) 9 months ago
debug_test.go all: update copyright and license headers 2 years ago
log.go tsweb: rename AccessLogRecord's When to Time 6 months ago
request_id.go tsweb: switch to fastuuid for request ID generation 7 months ago
tsweb.go tsweb: log once per request 4 months ago
tsweb_test.go tsweb: log once per request 4 months ago