Expand room details in webhook events (#4730)

* pass room proto directly to telemetry events

* Keep telemetry analytics events on a minimal room, gate full room in webhooks

---------

Co-authored-by: Simon Beeli <simon.beeli@gmx.ch>
This commit is contained in:
Anunay Maheshwari
2026-08-07 15:29:41 +05:30
committed by GitHub
co-authored by Simon Beeli
parent 8e6077221c
commit 4e921aa1b6
7 changed files with 300 additions and 328 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ func Test_OnTrackUpdate_EventIsSent(t *testing.T) {
}
// do
fixture.sut.TrackPublishedUpdate(context.Background(), livekit.RoomID(roomID), livekit.RoomName(roomName), livekit.ParticipantID(partID), trackInfo)
fixture.sut.TrackPublishedUpdate(context.Background(), &livekit.Room{Sid: roomID, Name: roomName}, livekit.ParticipantID(partID), trackInfo)
time.Sleep(time.Millisecond * 500)
// test
@@ -228,7 +228,7 @@ func Test_OnTrackSubscribed_EventIsSent(t *testing.T) {
require.Equal(t, room, event.Room)
// do
fixture.sut.TrackSubscribed(context.Background(), livekit.RoomID(room.Sid), livekit.RoomName(room.Name), livekit.ParticipantID(partSID), trackInfo, publisherInfo, true)
fixture.sut.TrackSubscribed(context.Background(), room, livekit.ParticipantID(partSID), trackInfo, publisherInfo, true)
time.Sleep(time.Millisecond * 500)
require.Eventually(t, func() bool {