Add ParticipantActive telemetry method (#411)
* Add ParticipantActive telemetry method Signed-off-by: shishir gowda <shishir@livekit.io> * fix test Signed-off-by: shishir gowda <shishir@livekit.io> * Update go mod Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
@@ -219,3 +219,16 @@ func (t *telemetryServiceInternal) notifyEvent(ctx context.Context, event *livek
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (t *telemetryServiceInternal) ParticipantActive(ctx context.Context, participantID livekit.ParticipantID, clientMeta *livekit.AnalyticsClientMeta) {
|
||||
roomID, roomName := t.getRoomDetails(participantID)
|
||||
|
||||
t.analytics.SendEvent(ctx, &livekit.AnalyticsEvent{
|
||||
Type: livekit.AnalyticsEventType_PARTICIPANT_ACTIVE,
|
||||
Timestamp: timestamppb.Now(),
|
||||
RoomId: string(roomID),
|
||||
ParticipantId: string(participantID),
|
||||
Room: &livekit.Room{Name: string(roomName)},
|
||||
ClientMeta: clientMeta,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user