mirror of
https://github.com/livekit/livekit.git
synced 2026-08-15 02:39:50 +00:00
With https://github.com/livekit/livekit/pull/4706, there was a case of some downstream component taking a long time while lock was held. While the underlying cause of holding a lock while doing callback was removed in that PR, to catch such cases, some publish side metric anomaly would be useful to monitor and alert on. Adding a publish time record for pending tracks on participant close. That would inflate the publish time for participants not being able to publish and can be alerted on as it will spike up the value at node level and at cluster level if multiple nodes have the issue.