tailscale/ipn/ipnlocal
Andrew Dunham d1146dc701 ipn/ipnlocal: rate-limit diagnose logs in bugreport
We can log too quickly for logtail to catch up, even when we opt out of
log rate-limiting. When the user passes the --diagnose flag to
bugreport, we use a token bucket to control how many logs per second are
printed and sleep until we're able to write more.

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: If27672d66b621b589280bd0fe228de367ffcbd8f
2023-01-31 14:29:21 -05:00
..
c2n.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
dnsconfig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
local_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
local.go ipn/ipnlocal: rate-limit diagnose logs in bugreport 2023-01-31 14:29:21 -05:00
loglines_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
network-lock_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
network-lock.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
peerapi.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
profiles_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
profiles.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
serve_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
serve.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
state_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00