posthog
posthog copied to clipboard
fix(recordings): drop old + future events
Problem
Really old + futuristic timestamps are ingested into session recordings (because browsers do weird things). This creates a ton of partitions in clickhouse - and that's not good
Changes
Drops recording data with a timestamp > 1 day in the future or < 365 days in the past
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
Wrote a test