Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: Remove loading integrations names from event.extra #4627

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

krystofwoldrich
Copy link
Member

📜 Description

This PR removes unsafe loading of integrations names from event.extra data bag.

This was used in 0.x.x version of Sentry React Native and used to be a string.

Today integrations are expected to be array.

https://github.com/getsentry/sentry-react-native/blob/v0.14.0/ios/RNSentry.m#L171

https://develop.sentry.dev/sdk/data-model/event-payloads/sdk/

As this is outdated private property removel doesn't have to a breaking change.

💡 Motivation and Context

Removing this will make future refactors easier as sdk info won't depend on event instance.

💚 How did you test it?

unit tests

📝 Checklist

You have to check all boxes before merging:

  • I added tests to verify the 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.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

@krystofwoldrich krystofwoldrich changed the base branch from main to kw/fix-sdk-info-packages December 12, 2024 20:09
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.911%. Comparing base (a401e33) to head (61bf0e7).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #4627       +/-   ##
=============================================
+ Coverage   90.878%   90.911%   +0.033%     
=============================================
  Files          616       617        +1     
  Lines        70917     71059      +142     
  Branches     25831     25969      +138     
=============================================
+ Hits         64448     64601      +153     
+ Misses        6374      6360       -14     
- Partials        95        98        +3     
Files with missing lines Coverage Δ
Sources/Sentry/SentryClient.m 98.697% <100.000%> (-0.004%) ⬇️

... and 30 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a401e33...61bf0e7. Read the comment docs.

Copy link

github-actions bot commented Dec 12, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1237.22 ms 1266.06 ms 28.84 ms
Size 22.31 KiB 756.40 KiB 734.09 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
dd0557f 1246.31 ms 1258.46 ms 12.15 ms
06548c0 1226.71 ms 1252.37 ms 25.66 ms
742d4b6 1217.04 ms 1229.38 ms 12.33 ms
e5a239a 1231.14 ms 1245.09 ms 13.94 ms
45d3ca5 1248.27 ms 1255.48 ms 7.21 ms
d26c417 1233.98 ms 1255.36 ms 21.38 ms
38b36f5 1218.48 ms 1246.61 ms 28.13 ms
e324230 1254.92 ms 1262.92 ms 8.00 ms
4886e79 1248.43 ms 1255.04 ms 6.61 ms
3396be1 1242.29 ms 1254.41 ms 12.12 ms

App size

Revision Plain With Sentry Diff
dd0557f 22.85 KiB 411.75 KiB 388.90 KiB
06548c0 20.76 KiB 427.36 KiB 406.59 KiB
742d4b6 21.58 KiB 546.19 KiB 524.61 KiB
e5a239a 21.58 KiB 713.49 KiB 691.91 KiB
45d3ca5 20.76 KiB 427.54 KiB 406.78 KiB
d26c417 21.58 KiB 700.28 KiB 678.70 KiB
38b36f5 21.58 KiB 616.35 KiB 594.77 KiB
e324230 22.85 KiB 408.88 KiB 386.03 KiB
4886e79 22.85 KiB 412.98 KiB 390.13 KiB
3396be1 22.30 KiB 730.07 KiB 707.77 KiB

Previous results on branch: kw/remove-integrations-from-extras

Startup times

Revision Plain With Sentry Diff
c1873ea 1242.43 ms 1268.43 ms 26.00 ms

App size

Revision Plain With Sentry Diff
c1873ea 22.31 KiB 756.40 KiB 734.09 KiB

Base automatically changed from kw/fix-sdk-info-packages to main December 13, 2024 11:37
@krystofwoldrich krystofwoldrich merged commit a532b18 into main Dec 13, 2024
16 of 17 checks passed
@krystofwoldrich krystofwoldrich deleted the kw/remove-integrations-from-extras branch December 13, 2024 11:38
Copy link

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Remove loading integrations names from event.extra ([#4627](https://github.com/getsentry/sentry-cocoa/pull/4627))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 61bf0e7

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