-
Notifications
You must be signed in to change notification settings - Fork 658
Fix logs, breadcrumbs and custom keys for ANRs #2718
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
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
90322b3
Add collectAnrs to FeatureSettings
tejasd 4e186a6
Add unit test to test settings received when anr collection is enabled
tejasd 62e8c18
Cleanup json file
tejasd eb08e6b
Add ability to get the startTimestampMs of a session
tejasd ec3e5c9
Merge branch 'crashlytics/anrs' into td/anr-2
tejasd c5f5f26
Change Long to long
tejasd 4d68ae4
Merge branch 'crashlytics/anrs' into td/anr
tejasd 0422970
Add ApplicationExitInfo to CrashlyticsReport
tejasd b928e3f
Comment cleanup
tejasd 20b4f30
Revert makeEvents refactoring
tejasd 2c8f5a9
More cleanup
tejasd b0f9cc4
Merge branch 'crashlytics/anrs' into td/anr
tejasd 3a56029
Merge branch 'crashlytics/anrs' into td/anr
tejasd 3452ee4
Merge branch 'crashlytics/anrs' into td/anr-2
tejasd d1eeea8
AppExitInfo json transform
tejasd 490733e
Merge branch 'crashlytics/anrs' into td/anr-2
tejasd 5bb61f5
Merge branch 'crashlytics/anrs' into td/anr
tejasd 1047983
AppExitInfo json transform
tejasd 47511bc
Merge branch 'crashlytics/anrs' into td/anr-2
tejasd 76f8438
Merge branch 'td/anr-2' into td/anr
tejasd 2e17dee
Collect and Persist ANRs + robolectric tests fpr CrashlyticsControlle…
tejasd cb840c3
Add missing feature to read an app exit info when finalizing report +…
tejasd c780da6
Fix NPE and add relevant unit test
tejasd 6c51f32
Add copyright to new test classes
tejasd 91cda29
Merge branch 'crashlytics/anrs' into td/anr
tejasd dbc72dc
Merge branch 'crashlytics/anrs' into td/anr
tejasd b27e040
Add ApplicationExitInfo to Event.Application.Executor and make Thread…
tejasd bac6dcd
Merge branch 'crashlytics/anrs' into td/anr
tejasd 08794f0
Refactor the persistence of AppExitInfo to move it to the Event
tejasd a085edc
Some cleanup
tejasd e069f72
Some cleanup + additional unit test
tejasd 012d806
Try to fix tests
tejasd 6a2dc78
Fix a broken unit test
tejasd 2810b7b
Merge branch 'crashlytics/anrs' into td/anr
tejasd 6a391ec
Merge branch 'crashlytics/anrs' into td/anr
tejasd 8bad7a4
Revert Crashlytics androidTest manifest
tejasd eeb550b
Revert Crashlytics androidTest manifest
tejasd dbe533a
java format
tejasd d603cba
Clean up old usage of AppExitInfo
tejasd 95a3c56
Add custom keys and logs to ANR event
tejasd c22350d
Fix unit test + cleanup with orientation in ANR event
tejasd 8d00013
Revert orientation for ANRs
tejasd e32e503
Merge branch 'crashlytics/anrs' into td/anr
tejasd f27bbc7
Add ability to add logs and breadcrumbs to ANR events
tejasd 5129de9
Revert "Add ability to add logs and breadcrumbs to ANR events"
tejasd 21d4f2a
Merge branch 'crashlytics/anrs' into td/anr
tejasd 621e2da
Merge branch 'crashlytics/anrs' into td/anr-2
tejasd 619982b
Merge branch 'td/anr' into td/anr-2
tejasd 6bfec5b
Restore logs changes for ANRs
tejasd fcbd3d1
Change test device to API 30
tejasd 8f1af2c
Change device to API 30
tejasd e92a556
Fix custom keys for ANRs
tejasd ca67b3f
Merge branch 'crashlytics/anrs' into td/anr
tejasd 339e3be
Merge branch 'td/anr' into td/anr-2
tejasd da62a3b
Cleanup
tejasd b676522
Revert addLogsAndReportMetadata to addLogsAndCustomKeys
tejasd 167f2c1
Clean up unit test
tejasd fa7caa1
Merge branch 'crashlytics/anrs' into td/anr
tejasd 91b903c
Merge branch 'td/anr' into td/anr-2
tejasd 6af964a
Add comment about device orientation
tejasd bf4d680
Merge branch 'td/anr' into td/anr-2
tejasd 2c8ee59
Fix merge conflict
tejasd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming single app_exit_info entry gets created for app exit (and not multiple app_exit_info entries eg., ANR and OOM after an app exit). Is this assumption correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That assumption is most likely correct., but the documentation doesn't explicitly mention it, and I haven't looked at the implementation yet - but it does imply (https://developer.android.com/reference/kotlin/android/app/ApplicationExitInfo#gettraceinputstream)
However, we're currently only collecting ANRs, and so it's ok to only collect the last app_exit_info.