Skip to content

feat(breadcrumbs): Add environment aware defaults for RN/Expo/Web#4886

Merged
krystofwoldrich merged 3 commits into
v7from
kw-breadcrumbs
Jun 4, 2025
Merged

feat(breadcrumbs): Add environment aware defaults for RN/Expo/Web#4886
krystofwoldrich merged 3 commits into
v7from
kw-breadcrumbs

Conversation

@krystofwoldrich
Copy link
Copy Markdown
Contributor

@krystofwoldrich krystofwoldrich commented Jun 3, 2025

📢 Type of change

  • Enhancement
  • Refactoring

📜 Description

This PR fixes window.addEventListerner is not a function error, which was logged out on the v7 branch during the breadcrumbsIntegration setup.

The error was caused by the history handler which was recently refactored in the browser SDK.

This PR adds a wrapper around the browser integration changing the defaults if the SDK runs on RN and on Web.

💚 How did you test it?

sample apps, unit tests

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

@krystofwoldrich krystofwoldrich changed the title chore(utils): Use single encodeUTF8 impl feat(breadcrumbs): Add environment aware defaults for RN/Expo/Web Jun 3, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 07c87c6

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 458.75 ms 483.49 ms 24.74 ms
Size 17.75 MiB 19.58 MiB 1.83 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746 399.51 ms 429.09 ms 29.58 ms

App size

Revision Plain With Sentry Diff
3c99746 17.75 MiB 19.58 MiB 1.83 MiB

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1224.65 ms 1232.43 ms 7.78 ms
Size 2.63 MiB 3.78 MiB 1.15 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 1215.12 ms 1222.31 ms 7.18 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 2.63 MiB 3.78 MiB 1.15 MiB

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 394.02 ms 399.02 ms 5.00 ms
Size 7.15 MiB 8.34 MiB 1.18 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 400.65 ms 399.59 ms -1.06 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 7.15 MiB 8.34 MiB 1.18 MiB

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1222.52 ms 1227.71 ms 5.19 ms
Size 3.19 MiB 4.35 MiB 1.16 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 1227.65 ms 1228.81 ms 1.16 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 3.19 MiB 4.35 MiB 1.16 MiB

@krystofwoldrich krystofwoldrich marked this pull request as ready for review June 4, 2025 08:20
Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀
Thank you for documenting and adding tests 🙇

@krystofwoldrich krystofwoldrich merged commit 936481d into v7 Jun 4, 2025
90 of 92 checks passed
@krystofwoldrich krystofwoldrich deleted the kw-breadcrumbs branch June 4, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants