feat: Add Sentry Babel Transformer#3916
Merged
krystofwoldrich merged 16 commits intofeat/replayfrom Jul 3, 2024
Merged
Conversation
Contributor
|
Contributor
iOS (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce+dirty | 1224.27 ms | 1219.66 ms | -4.61 ms |
| 41db11d+dirty | 1207.36 ms | 1210.32 ms | 2.96 ms |
| 376301c+dirty | 1215.73 ms | 1219.80 ms | 4.06 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce+dirty | 2.36 MiB | 3.05 MiB | 702.78 KiB |
| 41db11d+dirty | 2.36 MiB | 3.04 MiB | 698.69 KiB |
| 376301c+dirty | 2.36 MiB | 3.05 MiB | 702.83 KiB |
Previous results on branch: kw/add-sentry-babel-transaformer
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fd77856+dirty | 1230.60 ms | 1222.46 ms | -8.15 ms |
| 3ae09f5+dirty | 1219.96 ms | 1217.64 ms | -2.32 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fd77856+dirty | 2.36 MiB | 3.05 MiB | 702.80 KiB |
| 3ae09f5+dirty | 2.36 MiB | 3.05 MiB | 702.85 KiB |
Contributor
iOS (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce+dirty | 1225.38 ms | 1218.06 ms | -7.31 ms |
| 41db11d+dirty | 1208.60 ms | 1210.47 ms | 1.87 ms |
| 376301c+dirty | 1224.74 ms | 1227.00 ms | 2.26 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce+dirty | 2.92 MiB | 3.61 MiB | 710.22 KiB |
| 41db11d+dirty | 2.92 MiB | 3.61 MiB | 705.84 KiB |
| 376301c+dirty | 2.92 MiB | 3.61 MiB | 709.95 KiB |
Previous results on branch: kw/add-sentry-babel-transaformer
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fd77856+dirty | 1245.06 ms | 1254.37 ms | 9.30 ms |
| 3ae09f5+dirty | 1228.45 ms | 1236.63 ms | 8.18 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fd77856+dirty | 2.92 MiB | 3.61 MiB | 710.01 KiB |
| 3ae09f5+dirty | 2.92 MiB | 3.61 MiB | 709.96 KiB |
Contributor
Android (new) Performance metrics 🚀
|
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce | 469.96 ms | 516.38 ms | 46.42 ms |
| 41db11d | 429.33 ms | 451.24 ms | 21.91 ms |
| 376301c | 445.52 ms | 474.70 ms | 29.18 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 063bfce | 17.73 MiB | 20.04 MiB | 2.30 MiB |
| 41db11d | 17.73 MiB | 20.04 MiB | 2.30 MiB |
| 376301c | 17.73 MiB | 20.04 MiB | 2.30 MiB |
vaind
reviewed
Jun 28, 2024
Contributor
vaind
left a comment
There was a problem hiding this comment.
This goes well beyond my understanding of the ecosystem but the I approve of the idea, because it's exactly what I wanted to do at first, I just didn't know how.
added 12 commits
July 1, 2024 10:57
3c0b4ba to
d31895e
Compare
lforst
approved these changes
Jul 3, 2024
lforst
left a comment
There was a problem hiding this comment.
Take with a grain of salt because I am no expert but nothing in this PR looks completely off to me.
| */ | ||
| export function withSentryBabelTransformer(config: MetroConfig): MetroConfig { | ||
| const defaultBabelTransformerPath = config.transformer && config.transformer.babelTransformerPath; | ||
| logger.debug('Default Babel transformer path from `config.transformer`:', defaultBabelTransformerPath); |
There was a problem hiding this comment.
The Sentry SDK logger is mostly intended to be used when the SDK is initialized. For build tooling we usually don't rely on it. I would do a good ol' console.log instead.
added 2 commits
July 3, 2024 15:04
lucas-zimerman
approved these changes
Jul 3, 2024
Collaborator
lucas-zimerman
left a comment
There was a problem hiding this comment.
Looks good to me from my part, LGTM!
This was referenced Jul 8, 2024
Merged
|
Thanks for expanding support to react native! This looks great |
bruno-garcia
added a commit
that referenced
this pull request
Jul 15, 2024
* feat(replay): Add Mobile Replay Alpha (#3714) * feat(sample): add running indicator (animation overlay) (#3903) * feat(replay): Add breadcrumbs mapping from RN to RRWeb format (#3846) * feat(replay): Add network breadcrumbs (#3912) * fix(replay): Add tests for touch events (#3924) * feat(replay): Filter Sentry event breadcrumbs (#3925) * fix(changelog): Add latest native SDKs details * release: 5.25.0-alpha.2 * misc(samples): Add console anything examples for replay testing (#3928) * feat: Add Sentry Babel Transformer (#3916) * fix(replay): Add app lifecycle breadcrumbs conversion tests (#3932) * chore(deps): bump sentry-android to 7.12.0-alpha.3 * chore(deps): bump sentry-android to 7.12.0-alpha.4 * fix(replay): Mask SVGs from `react-native-svg` when `maskAllVectors=true` (#3930) * fix(replay): Add missing properties to android nav breadcrumbs (#3942) * release: 5.26.0-alpha.3 * misc(replay): Add Mobile Replay Public Beta changelog (#3943) --------- Co-authored-by: Ivan Dlugos <[email protected]> Co-authored-by: Ivan Dlugos <[email protected]> Co-authored-by: getsentry-bot <[email protected]> Co-authored-by: getsentry-bot <[email protected]> Co-authored-by: Roman Zavarnitsyn <[email protected]> Co-authored-by: Bruno Garcia <[email protected]>
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 PR adds
@sentry/babel-plugin-component-annotateto@sentry/react-native/metro.Example use RN 0.72 and newer:
For RN 0.65 to 0.71 (these version did not have default config in metro.config.js but applied it later, that changed in 0.72):
💡 Motivation and Context
@sentry/babel-plugin-component-annotateusingwithSentry#3913💚 How did you test it?
sample apps, e2e tests, unit tests
📝 Checklist
sendDefaultPIIis enabled🔮 Next steps