Skip to content

Commit

Permalink
timestamp too
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 22, 2024
1 parent 2caaa94 commit 541e666
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 541e666

Please sign in to comment.