Closed bidetofevil closed 1 month ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @bidetofevil and the rest of your teammates on Graphite
Attention: Patch coverage is 93.75000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 82.99%. Comparing base (
102cdd1
) to head (628dfcb
). Report is 2 commits behind head on master.
Goal
Changed the
SendImmediately
designation to aSendMode
enum to additionally allow logs to be saved instead of sent, and use this to save crash logs rather than send them. This ensures they will be delivered on the next app startup in a consistent matter, rather than rely on our existing, flakey mechanism to attempt to send synchronously, and only if it fails, save the payload.Bundled with this change is the need to serialize the log payload and create the request for other unbatched logs off the calling thread. Right now, they are not being done on a background thread - only sent through it - so this could be problematic depending on where it's being invoked. Instead, we will run them on the same scheduler that we use to run the log batching job.
Testing
Added unit tests everywhere to ensure this SendMode concept is passed down. Also added integration test to ensure that this works.