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/net/sockstats
Mihai Parparita 4c2f67a1d0 net/sockstat: fix per-interface statistics not always being available
withSockStats may be called before setLinkMonitor, in which case we
don't have a populated knownInterfaces map. Since we pre-populate the
per-interface counters at creation time, we would end up with an
empty map. To mitigate this, we do an on-demand request for the list of
interfaces.

This would most often happen with the logtail instrumentation, since we
initialize it very early on.

Updates tailscale/corp#9230

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
1 year ago
..
label_string.go sockstats: switch label to enum 1 year ago
sockstats.go sockstats: add validation for TCP socket stats 1 year ago
sockstats_noop.go sockstats: switch label to enum 1 year ago
sockstats_tsgo.go net/sockstat: fix per-interface statistics not always being available 1 year ago
sockstats_tsgo_darwin.go sockstats: add validation for TCP socket stats 1 year ago