Unexpected behavior of slim_frame_data
The function slim_frame_data is supposed to clear pre- and post-context of interior frames beyond a certain threshold. We have seen a case where it instead removes the pre- and post-context of the top frame, which is also the only in-app frame and the only one that even has pre- and post-context. Adding another in-app frame immediately below the top one will instead result in that new frame's data being removed and that in the top frame being preserved.
This behavior is extremely surprising and the logic in the function itself is unclear. We need to figure out what exactly the intended behavior of slim_frame_data is and implement it correctly.
Event payload exhibiting this problem: ruby-payload-edited.json