: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
feat(cymbal): set posthog-elixir wire-order cutoff at 2.13.0 (#73319)
Catalin Irimie270e0ffa8e41
diff --git a/rust/cymbal/src/modes/processing/normalization.rs b/rust/cymbal/src/modes/processing/normalization.rsindex f2b6e69e320a..c79374c0828f 100644--- a/rust/cymbal/src/modes/processing/normalization.rs+++ b/rust/cymbal/src/modes/processing/normalization.rs@@ -107,6 +107,8 @@ fn lib_rules() -> &'static [LibRule] {// but each module reports its own version stream."posthog-android" => Some(Version::new(3, 56, 0)),"posthog-server" => Some(Version::new(2, 9, 0)),+ // posthog-elixir ships the flip in 2.13.0 (PostHog/posthog-elixir#160).+ "posthog-elixir" => Some(Version::new(2, 13, 0)),// posthog-flutter ships its Dart flip in 5.33.0 and raises// its Android SDK floor to the canonical 3.56.0 release."posthog-flutter" => Some(Version::new(5, 33, 0)),@@ -329,6 +331,32 @@ mod test {assert!(legacy_wire_order(None, &canonical).is_none());}+ #[test]+ fn elixir_cutoff_gates_normalization_by_version() {+ for version in [Some("2.12.1"), Some("2.1.0"), Some("garbage"), None] {+ let mut list: ExceptionList =+ vec![exception_with_frames("Boom", &["main", "boom"])].into();+ let legacy = normalize_wire_order(&mut list, Some("posthog-elixir"), version);+ assert!(legacy.is_some(), "{version:?} should normalize");+ assert_eq!(frame_names(&list[0]), vec!["boom", "main"]);+ }++ for version in ["2.13.0", "2.13.1", "2.14.0", "3.0.0"] {+ let mut list: ExceptionList =+ vec![exception_with_frames("Boom", &["main", "boom"])].into();+ let legacy = normalize_wire_order(&mut list, Some("posthog-elixir"), Some(version));+ assert!(legacy.is_none(), "{version} should pass through");+ assert_eq!(frame_names(&list[0]), vec!["main", "boom"]);+ }++ // Legacy hashing still reconstructs pre-flip order post-cutoff.+ let canonical: ExceptionList =+ vec![exception_with_frames("Boom", &["main", "boom"])].into();+ let legacy = legacy_wire_order(Some("posthog-elixir"), &canonical)+ .expect("reconstruction must ignore the cutoff");+ assert_eq!(frame_names(&legacy[0]), vec!["boom", "main"]);+ }+#[test]fn android_server_and_flutter_cutoffs_gate_normalization_by_version() {// Android and server flip in one release train; Flutter follows with