: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
/// Formats the Kafka message key for person state changelog messages.
/// The topic must include `compact` in its `cleanup.policy` so Kafka
/// retains the latest state per person. Deployed config is
/// `compact,delete`, where retention bounds even the latest record —
/// acceptable because nothing reads records older than the writer's
/// committed offset, which retention outruns by design.
pub fn changelog_message_key(team_id: i64, person_id: i64) -> String {
format!("{team_id}:{person_id}")
}