feat: Add support for ignoring specific React components during annotation#4517
Merged
krystofwoldrich merged 3 commits intomainfrom Feb 10, 2025
Merged
feat: Add support for ignoring specific React components during annotation#4517krystofwoldrich merged 3 commits intomainfrom
krystofwoldrich merged 3 commits intomainfrom
Conversation
added 2 commits
February 7, 2025 12:45
…ation This change introduces the ability to configure which React components should be ignored during Sentry's component annotation process. The modification allows users to specify an array of component names to exclude from instrumentation via the `annotateReactComponents` option.
Contributor
|
Contributor
Android (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e540498+dirty | 408.56 ms | 480.00 ms | 71.44 ms |
| ddc0552+dirty | 405.80 ms | 480.00 ms | 74.20 ms |
| 77680ec+dirty | 393.50 ms | 426.68 ms | 33.18 ms |
| 9cd0e9f+dirty | 383.65 ms | 418.65 ms | 35.00 ms |
| d197b5c+dirty | 258.75 ms | 313.61 ms | 54.86 ms |
| acadc0f+dirty | 259.04 ms | 304.67 ms | 45.63 ms |
| 18ce5e8+dirty | 389.26 ms | 409.53 ms | 20.27 ms |
| 8c88ac7+dirty | 402.72 ms | 434.32 ms | 31.60 ms |
| 4161236+dirty | 429.89 ms | 498.74 ms | 68.85 ms |
| 0ebca77+dirty | 360.94 ms | 402.24 ms | 41.30 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e540498+dirty | 7.15 MiB | 8.38 MiB | 1.23 MiB |
| ddc0552+dirty | 7.15 MiB | 8.37 MiB | 1.22 MiB |
| 77680ec+dirty | 7.15 MiB | 8.35 MiB | 1.20 MiB |
| 9cd0e9f+dirty | 7.15 MiB | 8.35 MiB | 1.20 MiB |
| d197b5c+dirty | 7.15 MiB | 8.09 MiB | 962.72 KiB |
| acadc0f+dirty | 7.15 MiB | 8.03 MiB | 903.20 KiB |
| 18ce5e8+dirty | 7.15 MiB | 8.37 MiB | 1.22 MiB |
| 8c88ac7+dirty | 7.15 MiB | 8.35 MiB | 1.20 MiB |
| 4161236+dirty | 7.15 MiB | 8.38 MiB | 1.23 MiB |
| 0ebca77+dirty | 7.15 MiB | 8.22 MiB | 1.07 MiB |
Contributor
iOS (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e73d82f+dirty | 1207.52 ms | 1216.73 ms | 9.21 ms |
| 153419c+dirty | 1221.06 ms | 1227.80 ms | 6.73 ms |
| ac41368+dirty | 1226.65 ms | 1237.90 ms | 11.24 ms |
| 9cab16b+dirty | 1237.76 ms | 1234.00 ms | -3.76 ms |
| 1332acb+dirty | 1230.53 ms | 1234.54 ms | 4.01 ms |
| 77680ec+dirty | 1231.81 ms | 1238.35 ms | 6.54 ms |
| 8ae23a7+dirty | 1230.02 ms | 1227.62 ms | -2.40 ms |
| 3853f43+dirty | 1221.82 ms | 1242.64 ms | 20.82 ms |
| 800171e+dirty | 1229.96 ms | 1232.87 ms | 2.91 ms |
| b6f8ea2+dirty | 1236.08 ms | 1228.58 ms | -7.50 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e73d82f+dirty | 2.36 MiB | 3.08 MiB | 734.23 KiB |
| 153419c+dirty | 2.63 MiB | 3.70 MiB | 1.06 MiB |
| ac41368+dirty | 2.36 MiB | 3.14 MiB | 793.46 KiB |
| 9cab16b+dirty | 2.36 MiB | 3.08 MiB | 737.23 KiB |
| 1332acb+dirty | 2.36 MiB | 3.11 MiB | 759.86 KiB |
| 77680ec+dirty | 2.36 MiB | 3.10 MiB | 753.42 KiB |
| 8ae23a7+dirty | 2.36 MiB | 3.10 MiB | 752.42 KiB |
| 3853f43+dirty | 2.36 MiB | 2.85 MiB | 499.81 KiB |
| 800171e+dirty | 2.63 MiB | 3.69 MiB | 1.05 MiB |
| b6f8ea2+dirty | 2.63 MiB | 3.68 MiB | 1.05 MiB |
Contributor
iOS (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e73d82f+dirty | 1231.20 ms | 1228.81 ms | -2.40 ms |
| 153419c+dirty | 1225.12 ms | 1221.31 ms | -3.82 ms |
| ac41368+dirty | 1226.69 ms | 1229.96 ms | 3.27 ms |
| 9cab16b+dirty | 1236.10 ms | 1247.16 ms | 11.06 ms |
| 1332acb+dirty | 1243.98 ms | 1241.12 ms | -2.86 ms |
| 77680ec+dirty | 1237.65 ms | 1236.24 ms | -1.41 ms |
| 8ae23a7+dirty | 1233.67 ms | 1229.52 ms | -4.15 ms |
| 3853f43+dirty | 1271.74 ms | 1278.04 ms | 6.30 ms |
| 800171e+dirty | 1222.94 ms | 1235.82 ms | 12.88 ms |
| b6f8ea2+dirty | 1254.10 ms | 1236.67 ms | -17.43 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e73d82f+dirty | 2.92 MiB | 3.64 MiB | 740.56 KiB |
| 153419c+dirty | 3.19 MiB | 4.26 MiB | 1.08 MiB |
| ac41368+dirty | 2.92 MiB | 3.69 MiB | 794.29 KiB |
| 9cab16b+dirty | 2.92 MiB | 3.64 MiB | 743.06 KiB |
| 1332acb+dirty | 2.92 MiB | 3.67 MiB | 772.45 KiB |
| 77680ec+dirty | 2.92 MiB | 3.66 MiB | 758.54 KiB |
| 8ae23a7+dirty | 2.92 MiB | 3.66 MiB | 757.67 KiB |
| 3853f43+dirty | 2.92 MiB | 3.41 MiB | 503.54 KiB |
| 800171e+dirty | 3.19 MiB | 4.25 MiB | 1.06 MiB |
| b6f8ea2+dirty | 3.19 MiB | 4.25 MiB | 1.06 MiB |
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 0eacc98 | 431.88 ms | 454.56 ms | 22.68 ms |
| 9a3ca65+dirty | 326.93 ms | 330.14 ms | 3.21 ms |
| b95b8af | 454.05 ms | 454.53 ms | 0.48 ms |
| ddc0552 | 472.92 ms | 460.66 ms | -12.26 ms |
| e1ea4a8 | 506.82 ms | 510.48 ms | 3.66 ms |
| c2a4e9b | 480.42 ms | 485.60 ms | 5.18 ms |
| 728164b | 414.34 ms | 449.22 ms | 34.88 ms |
| e5c9b8b | 409.02 ms | 426.66 ms | 17.64 ms |
| 484813b | 434.55 ms | 452.31 ms | 17.75 ms |
| 2ec71da | 438.14 ms | 460.46 ms | 22.32 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 0eacc98 | 17.75 MiB | 20.11 MiB | 2.37 MiB |
| 9a3ca65+dirty | 17.73 MiB | 20.04 MiB | 2.31 MiB |
| b95b8af | 17.73 MiB | 20.11 MiB | 2.37 MiB |
| ddc0552 | 17.74 MiB | 20.09 MiB | 2.35 MiB |
| e1ea4a8 | 17.74 MiB | 20.08 MiB | 2.34 MiB |
| c2a4e9b | 17.73 MiB | 20.06 MiB | 2.33 MiB |
| 728164b | 17.73 MiB | 19.85 MiB | 2.12 MiB |
| e5c9b8b | 17.73 MiB | 19.83 MiB | 2.10 MiB |
| 484813b | 17.73 MiB | 20.07 MiB | 2.33 MiB |
| 2ec71da | 17.73 MiB | 20.10 MiB | 2.37 MiB |
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
📜 Description
This change introduces the ability to configure which React components should be ignored during Sentry's component annotation process. The modification allows users to specify an array of component names to exclude from instrumentation via the
annotateReactComponentsoption.💡 Motivation and Context
allow the latest features from the undelaying annotation plugin
💚 How did you test it?
sample apps, unit tests
📝 Checklist
sendDefaultPIIis enabled