-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
impr: Avoid work when storing invalid envelopes #4337
impr: Avoid work when storing invalid envelopes #4337
Conversation
When the SDK tries to store an envelope and the serialization fails, it skips trying to store the envelope and handling the maximum envelope limit.
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4337 +/- ##
=============================================
+ Coverage 91.658% 91.672% +0.014%
=============================================
Files 618 620 +2
Lines 50351 50401 +50
Branches 18144 18168 +24
=============================================
+ Hits 46151 46204 +53
+ Misses 4106 4104 -2
+ Partials 94 93 -1
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
📜 Description
When the SDK tries to store an envelope and the serialization fails, it skips trying to store the envelope and handling the maximum envelope limit.
💡 Motivation and Context
After the issue with corrupted envelope data SDK crashes #4280, we safeguard more edge cases when serializing and deserializing envelopes.
💚 How did you test it?
Unit tests.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.🔮 Next steps