Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2012 +/- ##
=======================================
Coverage 85.25% 85.25%
=======================================
Files 464 464
Lines 10502 10512 +10
Branches 1550 1554 +4
=======================================
+ Hits 8953 8962 +9
Misses 875 875
- Partials 674 675 +1
🚀 New features to boost your workflow:
|
|
|
||
| private companion object { | ||
| private const val SDK_AEI_SEND_LIMIT = 32 | ||
| private const val SDK_AEI_SEND_LIMIT = 64 |
There was a problem hiding this comment.
Does this limit apply for all AEIs? Any chance we can make it so that native crashes don't respect this limit?
There was a problem hiding this comment.
This is the maximum number of AEI we request from the OS on each process launch. In practice AEI is only recorded after a process terminates so most of the time I'd expect the number of AEI sent to equal 1.
So assuming Embrace is enabled 100% of the time, the SDK will get 64 process launches where it can attempt to capture data before dropping anything. I wouldn't like to make this unbounded as there is a resource cost in capturing each AEI object
There was a problem hiding this comment.
And unfortunately the Android API doesn't provide a way to query just for crashes/ANRs, which would make our lives much simpler...
bidetofevil
left a comment
There was a problem hiding this comment.
LGTM. Do we know if Google has a limit as to how big their AEI uploads could be?
IIRC it's something like 20Mb on-device for a tombstone, but I'd anticipate most tombstones being much smaller than that |
Add ordinal for AEI native crashes
Goal
Tweaks the limits for AEI capture, so that a maximum of 64 can be processed & sent in one session, and so the trace limit is 10Mb uncompressed. The intent behind this change is to improve the deliverability of NDK crash traces.
Testing
Updated existing test coverage.