Skip to content

fix(profiling): keep frame-level platform information when available in mixed stack traces #68694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 11, 2024
5 changes: 4 additions & 1 deletion src/sentry/profiles/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,10 @@ def truncate_stack_needed(
# This works since symbolicated_frames are in the same order
# as raw_frames (except some frames are not sent).
for frame_idx in symbolicated_frames_dict[symbolicated_frame_idx]:
new_frames.append(symbolicated_frames[frame_idx])
f = symbolicated_frames[frame_idx]
if profile["platform"] != platform:
f["platform"] = platform
new_frames.append(f)

# go to the next symbolicated frame result
symbolicated_frame_idx += 1
Expand Down
Loading