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/util
Joe Tsai 63b3c82587
ipn/local: log OS-specific diagnostic information as JSON (#11700)
There is an undocumented 16KiB limit for text log messages.
However, the limit for JSON messages is 256KiB.
Even worse, logging JSON as text results in significant overhead
since each double quote needs to be escaped.

Instead, use logger.Logf.JSON to explicitly log the info as JSON.

We also modify osdiag to return the information as structured data
rather than implicitly have the package log on our behalf.
This gives more control to the caller on how to log.

Updates #7802

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 month ago
..
cache util/cache: fix missing interface methods (#11275) 3 months ago
cibuild all: update copyright and license headers 1 year ago
clientmetric util/clientmetric: allow client metric values to be provided by a function 1 year ago
cloudenv util/cloudenv: add support for DigitalOcean 4 months ago
cmpver util/cmpver: add Less/LessEq helper funcs 3 months ago
codegen all: use Go 1.22 range-over-int 2 months ago
cstruct all: use Go 1.22 range-over-int 2 months ago
ctxkey all: use reflect.TypeFor now available in Go 1.22 (#11078) 4 months ago
deephash all: use Go 1.22 range-over-int 2 months ago
dirwalk all: use tstest.Replace more 1 year ago
dnsname all: use Go 1.22 range-over-int 2 months ago
execqueue control/controlclient,util/execqueue: extract execqueue into a package 5 months ago
expvarx all: use Go 1.22 range-over-int 2 months ago
fastuuid all: use Go 1.22 range-over-int 2 months ago
goroutines util/goroutines: let ScrubbedGoroutineDump get only current stack 11 months ago
groupmember util/groupmember: fail earlier if group doesn't exist, use slices.Contains 7 months ago
hashx all: use Go 1.22 range-over-int 2 months ago
httphdr util/httphdr: add new package for parsing HTTP headers (#9797) 8 months ago
httpm util/httpm: don't run test if .git doesn't exist 6 months ago
jsonutil all: use Go 1.22 range-over-int 2 months ago
limiter all: use Go 1.22 range-over-int 2 months ago
lineread all: update copyright and license headers 1 year ago
linuxfw cmd/tailscaled: move cleanup to an implicit action during startup 2 months ago
lru all: use Go 1.22 range-over-int 2 months ago
mak various: add golangci-lint, fix issues (#7905) 1 year ago
multierr all: use Go 1.22 range-over-int 2 months ago
must all: update copyright and license headers 1 year ago
nocasemaps all: use Go 1.22 range-over-int 2 months ago
osdiag ipn/local: log OS-specific diagnostic information as JSON (#11700) 1 month ago
osshare all: update copyright and license headers 1 year ago
osuser ssh/tailssh,util: extract new osuser package from ssh code (#10170) 7 months ago
pidowner all: use Go 1.22 range-over-int 2 months ago
precompress all: update copyright and license headers 1 year ago
progresstracking ipn/localapi: add support for multipart POST to file-put 2 months ago
quarantine all: update copyright and license headers 1 year ago
race all: use Go 1.22 range-over-int 2 months ago
racebuild all: update copyright and license headers 1 year ago
rands util/rands: add Shuffle and Perm functions with on-stack RNG state 4 months ago
reload util/reload: add new package to handle periodic value loading 2 months ago
ringbuffer all: use Go 1.22 range-over-int 2 months ago
set all: use Go 1.22 range-over-int 2 months ago
singleflight all: use Go 1.22 range-over-int 2 months ago
slicesx all: use Go 1.22 range-over-int 2 months ago
syspolicy util/syspolicy: clean up doc grammar and consistency 2 months ago
sysresources util/sysresources, magicsock: scale DERP buffer based on system memory 1 year ago
systemd all: update copyright and license headers 1 year ago
testenv util/testenv: add new package to hold InTest 10 months ago
topk all: use Go 1.22 range-over-int 2 months ago
truncate util/truncate: support []byte as well (#11614) 2 months ago
uniq all: use Go 1.22 range-over-int 2 months ago
vizerror util/vizerror: add As function to get wrapped Error 1 year ago
winutil all: use Go 1.22 range-over-int 2 months ago
zstdframe all: use Go 1.22 range-over-int 2 months ago