tailscale/wgengine/magicsock
M. J. Fromberger 9f48567bf1
ipn/ipnlocal,wgengine/magicsock: add basic counters for cached peer connectivity (#19699)
Add new clientmetric counters for establishing contact with peers while using
cached network map data. To do this, instrument the magicsock.Conn with a bit
to indicate whether its peer data came from a cached netmap. If so, there are
two conditions we will count as establishing connectivity to a peer:

  - Receipt of a CallMeMaybe from a peer via disco.
  - Establishing a valid endpoint address for a peer.

In vmtest, add Env.ClientMetrics to scrape metrics from the specified node.
Use this to check that counters were updated in caching tests.

Updates https://github.com/tailscale/projects/issues/13
Updates #12639

Change-Id: Ie8cf3244ac8af4f5bcfe4d0d944078da2ba08990
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2026-05-12 12:01:05 -07:00
..
blockforever_conn.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debughttp.go wgengine/magicsock: replace peers slice with peersByID map; add Upsert/RemovePeer 2026-04-22 15:07:11 -07:00
debugknobs_stubs.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debugknobs.go wgengine/magicsock: make debugNeverDirectUDP influence remote peer decisions 2026-01-30 13:16:46 -08:00
derp_test.go wgengine/magicsock: restore SetDERPMap signature, add SetDERPMapWithoutReSTUN 2026-04-29 12:46:15 -07:00
derp.go wgengine/magicsock: restore SetDERPMap signature, add SetDERPMapWithoutReSTUN 2026-04-29 12:46:15 -07:00
disco_atomic_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
disco_atomic.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
discopingpurpose_string.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
endpoint_default.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
endpoint_stub.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
endpoint_test.go magicsock: invalidate endpoint on trust timeout (#19415) 2026-04-15 19:22:07 -07:00
endpoint_tracker_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
endpoint_tracker.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
endpoint.go ipn/ipnlocal,wgengine/magicsock: add basic counters for cached peer connectivity (#19699) 2026-05-12 12:01:05 -07:00
magicsock_default.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
magicsock_linux_test.go cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
magicsock_linux.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
magicsock_notplan9.go ipn/localapi: stop logging "broken pipe" errors (#18487) 2026-01-26 16:41:03 -08:00
magicsock_plan9.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
magicsock_test.go wgengine/magicsock: add more docs, checks to Test32bitAlignment 2026-05-06 15:29:44 -07:00
magicsock.go ipn/ipnlocal,wgengine/magicsock: add basic counters for cached peer connectivity (#19699) 2026-05-12 12:01:05 -07:00
peermap_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermap.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermtu_darwin.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermtu_linux.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermtu_stubs.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermtu_unix.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
peermtu.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
rebinding_conn.go net/{batching,udprelay},wgengine/magicsock: add SO_RXQ_OVFL clientmetrics 2026-03-13 14:27:03 -07:00
relaymanager_test.go cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
relaymanager.go wgengine/magicsock: replace peers slice with peersByID map; add Upsert/RemovePeer 2026-04-22 15:07:11 -07:00