Fatal AppHangV2 events have missing debug meta
Description
How to reproduce the issue
- Install the iOS-Swift sample app via TestFlight. I used v 8.52.1 (2188).
- Press the button ANR Deadlock
- Force kill the app
- Relaunch the app
- Check the fatal app hang event in Sentry
The event has missing debug meta: https://sentry-sdks.sentry.io/issues/6690874496/events/da915f043c0741959b04d9ce9ba42943/?project=5428557.
This might be related to https://github.com/getsentry/sentry-cocoa/pull/5352.
Hi @philipphofmann I was able to reproduce the issue on 8.50.2 (stable) version too.
Can this change be a potential fix ?
@hovox, yes something like that. But we should ensure we're only attaching the debugMeta that is referenced in the stracktrace as we do it in the client https://github.com/getsentry/sentry-cocoa/blob/688aac7424ee0c46592516bc52c227307e902074/Sources/Sentry/SentryClient.m#L736-L737
Otherwise, we always send all debut meta, which can increase the event payload significantly.