Report publish & subscribe RTPStats as Telemetry events (#1506)

This commit is contained in:
David Zhao
2023-03-10 10:28:54 -08:00
committed by GitHub
parent e7e8bbe72c
commit 5ff72a99b9
10 changed files with 184 additions and 25 deletions
-5
View File
@@ -80,11 +80,6 @@ func (s *StatsWorker) Flush() {
ts := timestamppb.Now()
s.lock.Lock()
if !s.closedAt.IsZero() {
s.lock.Unlock()
return
}
stats := make([]*livekit.AnalyticsStat, 0, len(s.incomingPerTrack)+len(s.outgoingPerTrack))
incomingPerTrack := s.incomingPerTrack