Analytics: send local node room state/info (#2335)

* Analytics: send local node room state/info

Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
shishirng
2023-12-22 18:59:04 -05:00
committed by GitHub
parent 26c96ec283
commit 3770fbce64
6 changed files with 162 additions and 13 deletions
+7
View File
@@ -73,6 +73,7 @@ type TelemetryService interface {
IngressStarted(ctx context.Context, info *livekit.IngressInfo)
IngressUpdated(ctx context.Context, info *livekit.IngressInfo)
IngressEnded(ctx context.Context, info *livekit.IngressInfo)
LocalRoomState(ctx context.Context, info *livekit.AnalyticsNodeRooms)
// helpers
AnalyticsService
@@ -187,3 +188,9 @@ func (t *telemetryService) cleanupWorkers() {
}
}
}
func (t *telemetryService) LocalRoomState(ctx context.Context, info *livekit.AnalyticsNodeRooms) {
t.enqueue(func() {
t.SendNodeRoomStates(ctx, info)
})
}