Files
netbird/client
riccardom a4bc8b10be [client] disambiguate the connection_type metric tag
recordConnectionMetrics mapped only conntype.Relay to "relay" and let a
default branch record everything else as "ice". ICETurn (ICE through a TURN
server, which conn.isRelayed treats as relayed) and None (no connection
established yet, set on relay drop and on peer-state reset) were therefore
reported as direct peer-to-peer, overstating the direct-connection share on
every platform.

The mapping now lists every priority explicitly and emits ice_p2p, ice_turn,
relay or unknown. Values do not reuse "ice": samples recorded with the old
tag conflate the three states, so keeping the name would make historical and
corrected samples indistinguishable.

Most visible on mobile, where iOS and Android force relay by default and no
ICE worker is created: their "ice" samples could only ever have been
mislabelled None states.
2026-08-03 22:03:46 +02:00
..
2023-05-18 19:47:36 +02:00