mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-01 14:12:32 -08:00
On Windows, tailscaled runs as a service that starts a subprocess to do the actual work. Only the service process uploads logs, and only its own client metrics went with them, which left out nearly all of the metrics, as they are counted in the subprocess. Have the subprocess write the changes in its metrics to its output ahead of its log lines, and have the service process merge them into its own metrics with clientmetric.Remote rather than log them. Stop skipping TestClientMetricsUploaded for the Windows service. Fixes tailscale/corp#6528 Signed-off-by: Nick Khyl <[email protected]>