Send client sdk type when participant joins in telemetry (#275)

Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
shishirng
2021-12-21 15:35:27 -05:00
committed by GitHub
parent 8f28364842
commit 2e4ccd2577
4 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -43,7 +43,8 @@ func (t *telemetryService) RoomEnded(ctx context.Context, room *livekit.Room) {
})
}
func (t *telemetryService) ParticipantJoined(ctx context.Context, room *livekit.Room, participant *livekit.ParticipantInfo) {
func (t *telemetryService) ParticipantJoined(ctx context.Context, room *livekit.Room,
participant *livekit.ParticipantInfo, clientInfo *livekit.ClientInfo) {
t.Lock()
t.workers[participant.Sid] = newStatsWorker(ctx, t, room.Sid, room.Name, participant.Sid)
t.Unlock()
@@ -62,6 +63,7 @@ func (t *telemetryService) ParticipantJoined(ctx context.Context, room *livekit.
RoomSid: room.Sid,
Participant: participant,
Room: room,
SdkType: clientInfo.GetSdk(),
})
}