Repository navigation
Conversation
3 tasks done
Contributor
|
📲 Install BuildsAndroid
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (ANR Flame Graph)
📜 Description
ANR profiles are now sent as a flame graph attachment (
flamegraph.json,event.flamegraph) on the ANR event, instead of a separate profile chunk. The event no longer gets aprofilecontext.StackTraceConverter(AnrProfile→SentryProfile) has no callers left and is removed. Its two frame helpers move intoAnrFlameGraphAttachment.AnrHintEnrichercasts toAnrV2Hintonce, which removes the impossibleAbnormalExit/ null-timestamp branches. Hint names are untangled:hintis only theio.sentry.Hintcontainer,sdkHintthe unwrapped object,backfillablethe generic view,anrHinttheAnrV2Hint.💡 Motivation and Context
An ANR profile is a few seconds of main thread samples. A flame graph attachment shows the aggregated call tree directly on the issue, without the profile chunk pipeline.
💚 How did you test it?
Unit tests:
ApplicationExitInfoEventProcessorTest(flame graph attached, persisted and fallback ProGuard UUID, no culprit),AnrFlameGraphAttachmentTest(native frames and unknown line numbers, previously covered byAnrStackTraceConverterTest).📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
🤖 Generated with Claude Code