From 541e666f74720018c3679e00307576b8049b25b3 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Sun, 22 Dec 2024 11:27:10 +0000 Subject: [PATCH] timestamp too --- .../session-recording/services/replay-events-ingester.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin-server/src/main/ingestion-queues/session-recording/services/replay-events-ingester.ts b/plugin-server/src/main/ingestion-queues/session-recording/services/replay-events-ingester.ts index de2fee414d49c..9af3a1777d5da 100644 --- a/plugin-server/src/main/ingestion-queues/session-recording/services/replay-events-ingester.ts +++ b/plugin-server/src/main/ingestion-queues/session-recording/services/replay-events-ingester.ts @@ -138,7 +138,10 @@ export class ReplayEventsIngester { if (replayRecord !== null) { const asDate = DateTime.fromSQL(replayRecord.first_timestamp) if (!asDate.isValid || Math.abs(asDate.diffNow('day').days) >= 7) { - const eventTypes = rrwebEvents.map((event) => event.type) + const eventTypes = rrwebEvents.map((event) => ({ + type: event.type, + timestamp: event.timestamp, + })) const customEvents = rrwebEvents.filter((event) => event.type === RRWebEventType.Custom) await captureIngestionWarning( new KafkaProducerWrapper(this.producer),