tailscale/metrics
James Tucker 68b12a74ed metrics,syncs: add ShardedInt support to metrics.LabelMap
metrics.LabelMap grows slightly more heavy, needing a lock to ensure
proper ordering for newly initialized ShardedInt values. An Add method
enables callers to use .Add for both expvar.Int and syncs.ShardedInt
values, but retains the original behavior of defaulting to initializing
expvar.Int values.

Updates tailscale/corp#25450

Co-Authored-By: Andrew Dunham <andrew@du.nham.ca>
Signed-off-by: James Tucker <james@tailscale.com>
2024-12-23 13:10:18 -08:00
..
fds_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
fds_notlinux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
metrics_test.go metrics,syncs: add ShardedInt support to metrics.LabelMap 2024-12-23 13:10:18 -08:00
metrics.go metrics,syncs: add ShardedInt support to metrics.LabelMap 2024-12-23 13:10:18 -08:00
multilabelmap_test.go metrics: revert changes to MultiLabelMap's String method 2024-09-25 19:20:50 -04:00
multilabelmap.go metrics: revert changes to MultiLabelMap's String method 2024-09-25 19:20:50 -04:00