Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog Flutter Error Stack Order Tracking

PostHog Flutter error stack order tracking: protect crash grouping and trends after the 5.33.0 change to canonical stack trace frame order.

· 3 min read

Crash reports are only useful if identical bugs land in the same group. That grouping depends on stack traces, and on the order of the frames inside them.

Version 5.33.0 of the PostHog Flutter SDK changed how Dart error stack traces are sent. Frames now go out in PostHog’s canonical order, with the entry point first and the crash site last. Before, Dart traces were sent innermost-first. The same release raised the minimum Android SDK so native Android exceptions follow the same order, as Apple-native ones already did.

This is a behaviour change, not a new feature, and that is exactly why it deserves tracking. Upgrade without watching it and a familiar crash can look like a brand new issue, while your trend lines for the old issue fall to zero.

Data Points to Track

  • sdk_version: the posthog_flutter version that captured the error
  • exception_type: the Dart or native exception class
  • issue_fingerprint: the group the error was assigned to
  • error_origin: dart, android_native or ios_native
  • top_frame and entry_frame: the first and last frames, to confirm ordering
  • cause_depth: how many chained causes the exception carried
  • app_version and build_number: to compare releases around the upgrade
  • is_new_issue: whether the error created a new group
  • screen_name: where the user was when it happened

Setup Steps

  1. Record a baseline. Before upgrading, export your top 20 issues with their counts and fingerprints.
  2. Upgrade posthog_flutter to 5.33.0 or later in a staging build first.
  3. Trigger known errors deliberately, one Dart exception and one native Android exception, and check that the frame order looks right.
  4. Tag sdk_version on every error event so you can split data before and after the change.
  5. Ship to a small rollout and watch is_new_issue for the first 24 hours.
  6. Compare against the baseline. Match new groups to old ones by exception type and message.
  7. Document the cut-over date on your dashboard so nobody misreads the trend.

Actionable Insights

A spike in new issues right after the upgrade, with no spike in affected users, almost always means regrouping rather than new bugs. Look at users affected, not just issue counts.

If an old issue goes quiet on the day of the upgrade, find its twin. Merge or link them so your history stays continuous.

Mixed fleets make this harder. Users on older app versions still send the old order, so both formats exist at the same time until adoption catches up. Filter by sdk_version when comparing.

Finally, check native Android errors separately. They moved with the same release, and a bug that spans Dart and native layers may now group differently from before.

Common Pitfalls

Do not mute or delete the old issues when the new ones appear. You lose the history that tells you whether a fix actually worked. Also avoid alert rules keyed to a specific fingerprint, since the fingerprint can change. Alert on exception type and affected users instead.

Write the upgrade date in your release notes. Months later, someone will ask why one issue starts in October.