wgengine/magicsock: fix docs for send clientmetrics (#17514)
Updates #cleanup Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
@@ -3929,13 +3929,20 @@ var (
|
|||||||
metricSendDERPErrorClosed = clientmetric.NewCounter("magicsock_send_derp_error_closed")
|
metricSendDERPErrorClosed = clientmetric.NewCounter("magicsock_send_derp_error_closed")
|
||||||
metricSendDERPErrorQueue = clientmetric.NewCounter("magicsock_send_derp_error_queue")
|
metricSendDERPErrorQueue = clientmetric.NewCounter("magicsock_send_derp_error_queue")
|
||||||
metricSendDERPDropped = clientmetric.NewCounter("magicsock_send_derp_dropped")
|
metricSendDERPDropped = clientmetric.NewCounter("magicsock_send_derp_dropped")
|
||||||
metricSendUDP = clientmetric.NewAggregateCounter("magicsock_send_udp")
|
|
||||||
metricSendUDPError = clientmetric.NewCounter("magicsock_send_udp_error")
|
metricSendUDPError = clientmetric.NewCounter("magicsock_send_udp_error")
|
||||||
metricSendPeerRelay = clientmetric.NewAggregateCounter("magicsock_send_peer_relay")
|
|
||||||
metricSendPeerRelayError = clientmetric.NewCounter("magicsock_send_peer_relay_error")
|
metricSendPeerRelayError = clientmetric.NewCounter("magicsock_send_peer_relay_error")
|
||||||
metricSendDERP = clientmetric.NewAggregateCounter("magicsock_send_derp")
|
|
||||||
metricSendDERPError = clientmetric.NewCounter("magicsock_send_derp_error")
|
metricSendDERPError = clientmetric.NewCounter("magicsock_send_derp_error")
|
||||||
|
|
||||||
|
// Sends (data)
|
||||||
|
//
|
||||||
|
// Note: Prior to v1.78 metricSendUDP & metricSendDERP counted sends of data
|
||||||
|
// AND disco packets. They were updated in v1.78 to only count data packets.
|
||||||
|
// metricSendPeerRelay was added in v1.86 and has always counted only data
|
||||||
|
// packets.
|
||||||
|
metricSendUDP = clientmetric.NewAggregateCounter("magicsock_send_udp")
|
||||||
|
metricSendPeerRelay = clientmetric.NewAggregateCounter("magicsock_send_peer_relay")
|
||||||
|
metricSendDERP = clientmetric.NewAggregateCounter("magicsock_send_derp")
|
||||||
|
|
||||||
// Data packets (non-disco)
|
// Data packets (non-disco)
|
||||||
metricSendData = clientmetric.NewCounter("magicsock_send_data")
|
metricSendData = clientmetric.NewCounter("magicsock_send_data")
|
||||||
metricSendDataNetworkDown = clientmetric.NewCounter("magicsock_send_data_network_down")
|
metricSendDataNetworkDown = clientmetric.NewCounter("magicsock_send_data_network_down")
|
||||||
|
|||||||
Reference in New Issue
Block a user