Add support for propagateTraceparent#5227
Merged
Merged
Conversation
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 49ef936+dirty | 405.96 ms | 417.22 ms | 11.26 ms |
| af9331b | 449.77 ms | 479.20 ms | 29.43 ms |
| 8a4ce6f | 422.88 ms | 408.33 ms | -14.55 ms |
| 3bd3f0d+dirty | 447.21 ms | 472.31 ms | 25.10 ms |
| a0b15d6 | 423.06 ms | 437.77 ms | 14.71 ms |
| 2b89ce9 | 413.69 ms | 442.58 ms | 28.89 ms |
| c7f264b | 434.98 ms | 452.96 ms | 17.98 ms |
| 8d89cc9+dirty | 537.83 ms | 536.02 ms | -1.81 ms |
| 9f211e3 | 451.50 ms | 500.00 ms | 48.50 ms |
| 6fee48d+dirty | 407.42 ms | 437.71 ms | 30.29 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 49ef936+dirty | 17.75 MiB | 19.69 MiB | 1.94 MiB |
| af9331b | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 8a4ce6f | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 3bd3f0d+dirty | 17.75 MiB | 19.70 MiB | 1.95 MiB |
| a0b15d6 | 17.75 MiB | 20.15 MiB | 2.41 MiB |
| 2b89ce9 | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| c7f264b | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 8d89cc9+dirty | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 9f211e3 | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 6fee48d+dirty | 17.75 MiB | 19.68 MiB | 1.94 MiB |
Contributor
Android (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 49ef936+dirty | 333.72 ms | 387.51 ms | 53.79 ms |
| 5526494+dirty | 380.79 ms | 432.70 ms | 51.91 ms |
| 3bd3f0d+dirty | 334.38 ms | 402.19 ms | 67.81 ms |
| 1853710+dirty | 360.67 ms | 396.28 ms | 35.61 ms |
| 8d89cc9+dirty | 357.69 ms | 415.79 ms | 58.10 ms |
| 000da7a+dirty | 347.89 ms | 381.98 ms | 34.09 ms |
| 6fee48d+dirty | 370.23 ms | 427.86 ms | 57.63 ms |
| c4e097a+dirty | 382.43 ms | 443.77 ms | 61.34 ms |
| c9e95bd+dirty | 339.32 ms | 401.24 ms | 61.92 ms |
| 6479fd5+dirty | 393.06 ms | 434.04 ms | 40.98 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 49ef936+dirty | 7.15 MiB | 8.42 MiB | 1.26 MiB |
| 5526494+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| 3bd3f0d+dirty | 7.15 MiB | 8.43 MiB | 1.28 MiB |
| 1853710+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| 8d89cc9+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| 000da7a+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| 6fee48d+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| c4e097a+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| c9e95bd+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
| 6479fd5+dirty | 7.15 MiB | 8.41 MiB | 1.26 MiB |
Contributor
iOS (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 000da7a+dirty | 1204.50 ms | 1218.94 ms | 14.44 ms |
| c08359e+dirty | 1200.59 ms | 1211.81 ms | 11.22 ms |
| 5ee3314+dirty | 1234.25 ms | 1235.44 ms | 1.19 ms |
| 49ef936+dirty | 1221.27 ms | 1221.60 ms | 0.34 ms |
| 23080e5+dirty | 1221.39 ms | 1222.08 ms | 0.70 ms |
| 8a4ce6f+dirty | 1232.80 ms | 1223.80 ms | -9.00 ms |
| 77061ed+dirty | 1210.77 ms | 1218.45 ms | 7.68 ms |
| eb07ba3+dirty | 1214.49 ms | 1221.59 ms | 7.10 ms |
| 3099014+dirty | 1234.04 ms | 1243.22 ms | 9.18 ms |
| 90afdd3+dirty | 1216.17 ms | 1225.55 ms | 9.38 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 000da7a+dirty | 3.19 MiB | 4.48 MiB | 1.29 MiB |
| c08359e+dirty | 3.19 MiB | 4.38 MiB | 1.19 MiB |
| 5ee3314+dirty | 3.19 MiB | 4.55 MiB | 1.37 MiB |
| 49ef936+dirty | 3.19 MiB | 4.54 MiB | 1.36 MiB |
| 23080e5+dirty | 3.19 MiB | 4.48 MiB | 1.29 MiB |
| 8a4ce6f+dirty | 3.19 MiB | 4.53 MiB | 1.34 MiB |
| 77061ed+dirty | 3.19 MiB | 4.54 MiB | 1.36 MiB |
| eb07ba3+dirty | 3.19 MiB | 4.38 MiB | 1.19 MiB |
| 3099014+dirty | 3.19 MiB | 4.55 MiB | 1.36 MiB |
| 90afdd3+dirty | 3.19 MiB | 4.55 MiB | 1.37 MiB |
17e753a to
befae1e
Compare
propagateTraceparentpropagateTraceparent
Contributor
iOS (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 000da7a+dirty | 1214.31 ms | 1221.91 ms | 7.61 ms |
| c08359e+dirty | 1235.25 ms | 1233.96 ms | -1.29 ms |
| 5ee3314+dirty | 1215.18 ms | 1207.64 ms | -7.54 ms |
| 49ef936+dirty | 1228.42 ms | 1217.09 ms | -11.33 ms |
| 23080e5+dirty | 1216.02 ms | 1224.94 ms | 8.91 ms |
| 8a4ce6f+dirty | 1221.31 ms | 1219.84 ms | -1.47 ms |
| 77061ed+dirty | 1233.16 ms | 1234.88 ms | 1.71 ms |
| eb07ba3+dirty | 1222.46 ms | 1220.37 ms | -2.08 ms |
| 3099014+dirty | 1226.75 ms | 1236.56 ms | 9.81 ms |
| 90afdd3+dirty | 1233.90 ms | 1240.90 ms | 7.00 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 000da7a+dirty | 2.63 MiB | 3.91 MiB | 1.28 MiB |
| c08359e+dirty | 2.63 MiB | 3.81 MiB | 1.18 MiB |
| 5ee3314+dirty | 2.63 MiB | 3.99 MiB | 1.35 MiB |
| 49ef936+dirty | 2.63 MiB | 3.98 MiB | 1.34 MiB |
| 23080e5+dirty | 2.63 MiB | 3.91 MiB | 1.28 MiB |
| 8a4ce6f+dirty | 2.63 MiB | 3.96 MiB | 1.33 MiB |
| 77061ed+dirty | 2.63 MiB | 3.98 MiB | 1.34 MiB |
| eb07ba3+dirty | 2.63 MiB | 3.81 MiB | 1.18 MiB |
| 3099014+dirty | 2.63 MiB | 3.98 MiB | 1.35 MiB |
| 90afdd3+dirty | 2.63 MiB | 3.99 MiB | 1.35 MiB |
propagateTraceparentpropagateTraceparent
propagateTraceparentpropagateTraceparent
Collaborator
|
Could you check the test files? there is a test where you expect propagateTraceparent to be true but the result was false. |
973a166 to
649fbce
Compare
Contributor
|
Contributor
Author
|
@lucas-zimerman sorry, now it's ready |
antonis
reviewed
Oct 13, 2025
|
|
||
| ### Features | ||
|
|
||
| - Adds support for `propagateTraceparent` ([#5277](https://github.com/getsentry/sentry-react-native/pull/5227)) |
Contributor
There was a problem hiding this comment.
nit: Though obvious could add a short example in the changelog similar to other features (example)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📢 Type of change
Fixes #5115
📜 Description
Updates the init method to accept
propagateTraceparentheader and passes it to the JavaScript SDK client.The code also includes tests — those only check if
propagateTraceparentis actually being passed to the JS SDK client. There is no need to write extra tests becausepropagateTraceparentis already covered by tests in the JS SDK (here: https://github.com/getsentry/sentry-javascript/blob/develop/packages/core/test/lib/utils/traceData.test.ts)📝 Checklist
sendDefaultPIIis enabled🔮 Next steps