High TURN delay
connectivitynetwork
The time to receive the first TURN candidate was too long. This may slow down connection setup.
Description
TURN candidates are typically the slowest to gather because they require an allocation on the TURN server. The time from when ICE gathering starts to when the first TURN candidate appears (for UDP, TCP, or TLS) reflects allocation latency.
When this delay is too long, it could slow down the connection setup and can indicate network latency to the TURN server or an overloaded TURN server.
What do we do here?
We compute the duration from the first ICE gathering state change to the timestamp of the first TURN candidate for each protocol (UDP, TCP, TLS) in the peer connection logs. If the duration of these exceed 500 ms, we mark it as an observation.