-
-
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
fix: Keep PropagationContext when cloning scope #4518
Conversation
When cloning the scope with initWithScope, the SDK wrongly created a new propagation context instead of cloning it. This is fixe now.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4518 +/- ##
=============================================
- Coverage 91.462% 91.438% -0.025%
=============================================
Files 615 614 -1
Lines 68991 68842 -149
Branches 24749 24597 -152
=============================================
- Hits 63101 62948 -153
- Misses 5798 5802 +4
Partials 92 92
... and 30 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
6bc5ae5 | 1230.90 ms | 1246.10 ms | 15.20 ms |
3d8532d | 1225.27 ms | 1238.80 ms | 13.53 ms |
fa1ec44 | 1216.80 ms | 1244.42 ms | 27.62 ms |
5616e0a | 1237.00 ms | 1260.43 ms | 23.43 ms |
ed49f0c | 1215.94 ms | 1245.63 ms | 29.69 ms |
af1f4dd | 1238.08 ms | 1258.48 ms | 20.40 ms |
50bb751 | 1207.51 ms | 1219.37 ms | 11.86 ms |
c838244 | 1213.51 ms | 1243.76 ms | 30.24 ms |
39b1c35 | 1236.35 ms | 1239.90 ms | 3.55 ms |
56ec5d0 | 1236.65 ms | 1261.90 ms | 25.25 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
6bc5ae5 | 20.76 KiB | 401.40 KiB | 380.64 KiB |
3d8532d | 22.85 KiB | 414.09 KiB | 391.24 KiB |
fa1ec44 | 21.58 KiB | 670.39 KiB | 648.81 KiB |
5616e0a | 22.85 KiB | 407.45 KiB | 384.60 KiB |
ed49f0c | 21.58 KiB | 632.13 KiB | 610.55 KiB |
af1f4dd | 22.85 KiB | 414.71 KiB | 391.86 KiB |
50bb751 | 21.58 KiB | 417.86 KiB | 396.27 KiB |
c838244 | 21.58 KiB | 629.61 KiB | 608.03 KiB |
39b1c35 | 22.85 KiB | 408.88 KiB | 386.03 KiB |
56ec5d0 | 20.76 KiB | 414.44 KiB | 393.69 KiB |
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.
LGTM
📜 Description
When cloning the scope with initWithScope, the SDK wrongly created a new propagation context instead of cloning it. This is fixe now.
💡 Motivation and Context
I found this bug in #4504. This aligns with the behavior from Java: https://github.com/getsentry/sentry-java/blob/e039872d80a9a352d10e642ff630a3d905ff89d0/sentry/src/main/java/io/sentry/Scope.java#L154
💚 How did you test it?
Unit test.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.🔮 Next steps