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
+2 -1
View File
@@ -29,8 +29,9 @@ func Test_TelemetryService_Downstream_Stats(t *testing.T) {
room := &livekit.Room{}
partSID := "part1"
clientInfo := &livekit.ClientInfo{Sdk: 2}
participantInfo := &livekit.ParticipantInfo{Sid: partSID}
fixture.sut.ParticipantJoined(context.Background(), room, participantInfo)
fixture.sut.ParticipantJoined(context.Background(), room, participantInfo, clientInfo)
totalBytes := 33
fixture.sut.OnDownstreamPacket(partSID, totalBytes)