:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
pub mod compile;
pub mod evaluate;
pub mod expired;
pub mod stage;
pub use compile::{compile_retention_rule_set, RetentionRuleRow, MAX_ENABLED_RETENTION_RULES};
pub use evaluate::{
evaluate_retention_days, is_valid_retention_days, safe_evaluate_retention_days,
CompiledRetentionRule, CompiledRetentionRuleSet, DEFAULT_RETENTION_DAYS, MAX_RETENTION_DAYS,
RETENTION_MONTH_DAYS,
};
pub use expired::{
can_hold_expired_row, is_expired, make_retention_expired_stage, RETENTION_EXPIRED_STAGE_NAME,
};
pub use stage::{make_retention_stage, RETENTION_STAGE_NAME};