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

impr: Align SDK dispatch queue names #4442

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Conversation

philipphofmann
Copy link
Member

@philipphofmann philipphofmann commented Oct 15, 2024

📜 Description

All dispatch queue names now start with the prefix io.sentry.

💡 Motivation and Context

Came up in #4439 (comment).

💚 How did you test it?

CI still green.

📝 Checklist

You have to check all boxes before merging:

  • I reviewed the submitted code.
  • 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.
  • 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.

🔮 Next steps

All dispatch queues now start with the prefix .
Copy link

github-actions bot commented Oct 15, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1226.78 ms 1251.80 ms 25.01 ms
Size 21.90 KiB 707.49 KiB 685.59 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
4bad5f9 1237.20 ms 1250.51 ms 13.31 ms
728804f 1235.26 ms 1254.20 ms 18.94 ms
861d361 1227.90 ms 1231.45 ms 3.55 ms
add8416 1270.72 ms 1300.38 ms 29.66 ms
af1f4dd 1225.39 ms 1245.48 ms 20.09 ms
ed49f0c 1245.67 ms 1261.15 ms 15.48 ms
7bc3c0d 1259.74 ms 1268.45 ms 8.71 ms
02a972c 1207.08 ms 1221.78 ms 14.70 ms
c59914b 1342.08 ms 1375.73 ms 33.65 ms
6943de0 1235.98 ms 1246.88 ms 10.90 ms

App size

Revision Plain With Sentry Diff
4bad5f9 21.58 KiB 678.20 KiB 656.61 KiB
728804f 22.85 KiB 411.76 KiB 388.91 KiB
861d361 20.76 KiB 435.65 KiB 414.89 KiB
add8416 21.58 KiB 541.91 KiB 520.33 KiB
af1f4dd 22.85 KiB 414.71 KiB 391.86 KiB
ed49f0c 21.58 KiB 632.13 KiB 610.55 KiB
7bc3c0d 20.76 KiB 427.35 KiB 406.59 KiB
02a972c 22.85 KiB 413.42 KiB 390.57 KiB
c59914b 21.58 KiB 671.90 KiB 650.32 KiB
6943de0 20.76 KiB 393.33 KiB 372.57 KiB

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.345%. Comparing base (f31b069) to head (27751de).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #4442       +/-   ##
=============================================
+ Coverage   91.343%   91.345%   +0.002%     
=============================================
  Files          610       610               
  Lines        49928     49929        +1     
  Branches     18039     18042        +3     
=============================================
+ Hits         45606     45608        +2     
+ Misses        4230      4229        -1     
  Partials        92        92               
Files with missing lines Coverage Δ
Sources/Sentry/SentryDispatchQueueWrapper.m 100.000% <100.000%> (ø)
...rces/Sentry/SentryPerformanceTrackingIntegration.m 100.000% <100.000%> (ø)
Sources/Sentry/SentryTransportFactory.m 100.000% <100.000%> (ø)
...try/SentryWatchdogTerminationTrackingIntegration.m 93.750% <100.000%> (ø)

... and 8 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 f31b069...27751de. Read the comment docs.

Copy link
Member

@armcknight armcknight left a comment

Choose a reason for hiding this comment

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

Changes here look good.

IMO we should not allow usage of [[SentryDispatchQueueWrapper alloc] init] at all because that lets the SDK create multiple queue instances with the same label. Each should be unique.

@philipphofmann
Copy link
Member Author

IMO we should not allow usage of [[SentryDispatchQueueWrapper alloc] init] at all because that lets the SDK create multiple queue instances with the same label. Each should be unique.

What would you propose to fix this?

@philipphofmann philipphofmann merged commit 149877e into main Oct 16, 2024
68 of 70 checks passed
@philipphofmann philipphofmann deleted the impr/dispatch-queue-names branch October 16, 2024 09:32
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.

3 participants