Key telemetry stats worker using combination of roomID, participantID (#4323)

* Key telemetry stats work using combination of roomID, participantID

With forwarded participant, the same participantID can existing in two
rooms.

NOTE: This does not yet allow a participant session to report its
events/track stats into multiple rooms. That would require regitering
multiple listeners (from rooms a participant is forwarded to).

* missed file

* data channel stats

* PR comments + pass in room name so that telemetry events have proper room name also
This commit is contained in:
Raja Subramanian
2026-02-16 13:56:13 +05:30
committed by GitHub
parent 2d40449faf
commit b81bac0ec3
21 changed files with 1256 additions and 414 deletions
+2 -3
View File
@@ -27,7 +27,6 @@ import (
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/sfu"
"github.com/livekit/livekit-server/pkg/telemetry"
)
var (
@@ -54,7 +53,7 @@ type MediaTrackSubscriptionsParams struct {
ReceiverConfig ReceiverConfig
SubscriberConfig DirectionConfig
Telemetry telemetry.TelemetryService
TelemetryListener types.ParticipantTelemetryListener
Logger logger.Logger
}
@@ -112,7 +111,7 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
Subscriber: sub,
MediaTrack: t.params.MediaTrack,
AdaptiveStream: sub.GetAdaptiveStream(),
Telemetry: t.params.Telemetry,
TelemetryListener: t.params.TelemetryListener,
WrappedReceiver: wr,
IsRelayed: t.params.IsRelayed,
OnDownTrackCreated: t.onDownTrackCreated,