Repository navigation
5.28.0
Minor Changes
-
3fe9ab2: Add
addExceptionStep, recording breadcrumb-style context records that attach to every captured$exceptionas$exception_steps, giving the error-tracking UI a timeline of recent activity leading up to each error.Steps accumulate in a rolling, byte-bounded buffer owned by the embedded native SDK, so they also survive native fatal crashes and attach to the crash
$exceptionreported on the next launch. The buffer rotates only by byte-budget eviction and is not cleared by a capture or an identity change. Configure it onconfig.errorTrackingConfig.exceptionSteps(enabled,maxBytes).Posthog().addExceptionStep('User tapped Checkout', properties: {'screen': 'cart'});
Requires
posthog-androidandposthog-iosversions that support exception steps. On web, steps are forwarded to posthog-js, and exceptions captured viacaptureExceptionnow route through posthog-js'scaptureException(instead of a generic$exceptioncapture) so steps and other required metadata attach.