51 Commits (3bb57504af8efe8dd1a931cc3792978433b34602)

Author SHA1 Message Date
Brad Fitzpatrick 116f55ff66 all: gofmt for Go 1.19 4 years ago
Joe Tsai 57275a4912
tsweb: add HTTPError.Header (#5251) 4 years ago
Brad Fitzpatrick 6a396731eb all: use various net/netip parse funcs directly 4 years ago
Brad Fitzpatrick 7eaf5e509f net/netaddr: start migrating to net/netip via new netaddr adapter package 4 years ago
Denton Gentry 755396d6fe tsweb: add Float expvar support in varz 4 years ago
Tom DNetto 32c6823cf5 tsweb: implement interceptor for error page presentation 4 years ago
Brad Fitzpatrick 0df3b76c25 tsweb: fix Port80Handler redirect to https with FQDN unset 4 years ago
David Anderson e1c1d47991 tsweb: memoize the string forms of HTTP response codes. 4 years ago
David Anderson c48513b2be tsweb: support recording unabridged HTTP status codes as well. 4 years ago
Brad Fitzpatrick 2d1849a7b9 tsweb: remove JSONHandlerFunc 4 years ago
David Anderson 7b4960316b tsweb: add PrometheusVar, for vars that want to output varz themselves. 4 years ago
Maisem Ali 309c0a13a5 tsweb: add FQDN to Port80Handler to allow HTTPS redirects 4 years ago
Josh Bleecher Snyder 0868329936 all: use any instead of interface{} 4 years ago
Brad Fitzpatrick 61ee72940c all: use Go 1.18's strings.Cut 4 years ago
Brad Fitzpatrick 41fd4eab5c envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 4 years ago
slowy07 ac0353e982 fix: typo spelling grammar 5 years ago
Brad Fitzpatrick 51976ab3a2 tsweb: add vars for unix process start time and version 5 years ago
Brad Fitzpatrick c6740da624 tsweb: make VarzHandler support untyped expvar.Maps for compatibility 5 years ago
Brad Fitzpatrick 7c7eb8094b tsweb: make VarzHandler support expvar.Funcs returning ints/floats 5 years ago
Brad Fitzpatrick 5aba620fb9 tsweb: make VarzHandler capable of walking structs with reflect 5 years ago
Brad Fitzpatrick 3700cf9ea4 tsweb: also support LabelMaps from expvar.Map, without metrics 5 years ago
Brad Fitzpatrick 5f45d8f8e6 tsweb: add VarzHandler tests 5 years ago
julianknodt 3377089583 tsweb: add float64 to logged metrics 5 years ago
David Anderson 0022c3d2e2 tsweb: replace NewMux with a more flexible DebugHandler. 5 years ago
David Anderson 48c25fa36f tsweb: fold StdHandlerOpts and StdHandler200s with StdHandler. 5 years ago
David Anderson 72343fbbec tsweb: register expvars once at startup. 5 years ago
Josh Bleecher Snyder 516e8a4838 tsweb: add num_goroutines expvar 5 years ago
David Anderson 692a011b54 net/interfaces: remove IsTailscaleIP, make callers use tsaddr. 5 years ago
Brad Fitzpatrick 017dcd520f tsweb: export VarzHandler 5 years ago
David Anderson 57cd7738c2 tsweb: add an endpoint to manually trigger a GC. 5 years ago
Josh Bleecher Snyder 3b46655dbb tsweb: add StatusCodeCounters to HandlerOptions 6 years ago
Josh Bleecher Snyder e98f2c57d6 tsweb: add StdHandlerOpts that accepts an options struct 6 years ago
David Crawshaw 815bf017fc tsweb: when unwrapping HTTPError, record the user-facing message also in the log 6 years ago
David Anderson eccae0cd0c tsweb: add ReturnHandlerFunc. 6 years ago
Brad Fitzpatrick 64334143a1 tsweb: rename Handler to ReturnHandler 6 years ago
David Anderson af3a9dfad6 tsweb: add a StdHandler that doesn't log 200 responses. 6 years ago
Brad Fitzpatrick 2863e49db9 tsweb: don't flush, treat no-op Handler as 200, like Go 6 years ago
David Anderson 2c2dff9559 tsweb: don't panic if we get a tsweb.Error with no embedded error. 6 years ago
David Anderson 12a6626a94 tsweb: use a ResponseWriter wrapper to log more accurately. 6 years ago
Brad Fitzpatrick 6de37f4cc0 tsweb: move some comments, add a TODO 6 years ago
David Anderson df4636567f tsweb: adjust names and docs of the "handler with errors" functions. 6 years ago
David Anderson 98eceae55e tsweb: add a Handler type. 6 years ago
Brad Fitzpatrick 5c1e443d34 wgengine/monitor: don't call LinkChange when interfaces look unchanged 6 years ago
Brad Fitzpatrick a9cd8f31de tsweb: don't double import expvar; appease staticcheck 6 years ago
Brad Fitzpatrick 890f5dff40 tsweb: export runtime.MemStats var in Prometheus format 6 years ago
Brad Fitzpatrick 61f3fda405 tsweb: let expvar.Ints be gauges too 6 years ago
Brad Fitzpatrick 57de94c7aa tsweb: add /debug/ access via &debugkey + TS_DEBUG_KEY_PATH 6 years ago
David Anderson d580157921 tsweb: quote label values to comply with Prometheus format. 6 years ago
David Anderson f192c05413 metrics: add a LabelMap type for variables with 1 label dimension. 6 years ago
Brad Fitzpatrick e371520cc5 tsweb, derp: add expvar http.Handler for Prometheus's format 6 years ago