feat(replay): Allow using browserReplayIntegration without isWeb guard#4858
Merged
Conversation
added 2 commits
May 23, 2025 13:18
Contributor
|
Contributor
iOS (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9fbcfaf+dirty | 1216.66 ms | 1212.06 ms | -4.60 ms |
| 9da5c4e+dirty | 1231.84 ms | 1235.49 ms | 3.65 ms |
| 8a54dff+dirty | 1226.17 ms | 1227.79 ms | 1.63 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9fbcfaf+dirty | 2.63 MiB | 3.77 MiB | 1.14 MiB |
| 9da5c4e+dirty | 2.63 MiB | 3.76 MiB | 1.13 MiB |
| 8a54dff+dirty | 2.63 MiB | 3.79 MiB | 1.16 MiB |
Contributor
iOS (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9fbcfaf+dirty | 1215.22 ms | 1222.26 ms | 7.04 ms |
| 9da5c4e+dirty | 1215.41 ms | 1226.38 ms | 10.97 ms |
| 8a54dff+dirty | 1244.29 ms | 1254.71 ms | 10.43 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9fbcfaf+dirty | 3.19 MiB | 4.34 MiB | 1.15 MiB |
| 9da5c4e+dirty | 3.19 MiB | 4.33 MiB | 1.14 MiB |
| 8a54dff+dirty | 3.19 MiB | 4.35 MiB | 1.17 MiB |
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8a54dff | 482.57 ms | 467.16 ms | -15.41 ms |
| 9fbcfaf | 420.06 ms | 435.31 ms | 15.25 ms |
| 9da5c4e | 478.08 ms | 467.46 ms | -10.63 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8a54dff | 17.75 MiB | 19.54 MiB | 1.80 MiB |
| 9fbcfaf | 17.75 MiB | 19.54 MiB | 1.79 MiB |
| 9da5c4e | 17.75 MiB | 20.16 MiB | 2.41 MiB |
Contributor
Android (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8a54dff+dirty | 393.65 ms | 392.32 ms | -1.33 ms |
| 9fbcfaf+dirty | 417.92 ms | 431.81 ms | 13.90 ms |
| 9da5c4e+dirty | 399.70 ms | 407.34 ms | 7.64 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8a54dff+dirty | 7.15 MiB | 8.30 MiB | 1.15 MiB |
| 9fbcfaf+dirty | 7.15 MiB | 8.29 MiB | 1.14 MiB |
| 9da5c4e+dirty | 7.15 MiB | 8.42 MiB | 1.27 MiB |
antonis
approved these changes
May 23, 2025
Contributor
antonis
left a comment
There was a problem hiding this comment.
LGTM 🚀
Thank you for the added test 🙇
Collaborator
|
Q: isn't this change going to increase the SDK size for users by always bundling the web replay? |
Co-authored-by: LucasZF <lucas-zimerman1@hotmail.com>
Contributor
Author
Good point, but no, this is not changing the bundle size, unless excluded by the Sentry Metro Plugin the Browser Replay is always included in the bundle already. |
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
With this change users don't have to wrap
browserReplayIntegrationwithisWebguard.And MobileReplay can use in the future the same interface for the manual controls.
The change of the interface is possible breaking change and the base of the PR is v7.
💚 How did you test it?
unit test, sample app
📝 Checklist
sendDefaultPIIis enabled