AnalyticsEvent for generic reports (#3400)

* AnalyticsEvent for generic reports

* deps
This commit is contained in:
Raja Subramanian
2025-02-05 10:13:43 +05:30
committed by GitHub
parent bb0ee1139c
commit 14e65f1459
5 changed files with 74 additions and 21 deletions
+11
View File
@@ -499,6 +499,17 @@ func (t *telemetryService) IngressEnded(ctx context.Context, info *livekit.Ingre
})
}
func (t *telemetryService) Report(ctx context.Context, report *livekit.ReportInfo) {
t.enqueue(func() {
ev := &livekit.AnalyticsEvent{
Type: livekit.AnalyticsEventType_REPORT,
Timestamp: timestamppb.Now(),
Report: report,
}
t.SendEvent(ctx, ev)
})
}
// returns a livekit.Room with only name and sid filled out
// returns nil if room is not found
func (t *telemetryService) getRoomDetails(participantID livekit.ParticipantID) *livekit.Room {