Skip to content

perf(init): Do not retrieve ActivityManager if API < 35#5275

Merged
romtsn merged 2 commits intomainfrom
rz/perf/improve-init-codepath
Apr 8, 2026
Merged

perf(init): Do not retrieve ActivityManager if API < 35#5275
romtsn merged 2 commits intomainfrom
rz/perf/improve-init-codepath

Conversation

@romtsn
Copy link
Copy Markdown
Member

@romtsn romtsn commented Apr 8, 2026

📜 Description

We don't need to retrieve ActivityManager on API < 35 since it's not going to be used there.

💡 Motivation and Context

Internal customer report on Sentry SDK init causing slow frames

💚 How did you test it?

📝 Checklist

  • I added GH Issue ID & Linear ID
  • 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.

🔮 Next steps

@romtsn romtsn requested review from adinauer and markushi as code owners April 8, 2026 10:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Add strict trace continuation support by giortzisg in #5136
  • Sync file attachments to native by bitsandfoxes in #5211

Internal Changes 🔧

Deps

  • Bump codecov/codecov-action from 5.5.2 to 6.0.0 by dependabot in #5246
  • Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.0 to 2.25.2 by dependabot in #5245
  • Bump getsentry/craft from 2.24.1 to 2.25.2 by dependabot in #5242
  • Bump requests from 2.32.4 to 2.33.0 in the uv group across 1 directory by dependabot in #5237
  • Bump github/codeql-action from 4.32.6 to 4.35.1 by dependabot in #5243

Other

  • (init) Do not retrieve ActivityManager if API < 35 by romtsn in #5275
  • Update validate-pr workflow by stephanie-anderson in #5252
  • Add THIRD_PARTY_NOTICES.md for vendored third-party code by markushi in #5186

🤖 This preview updates automatically when you update the PR.

@sentry
Copy link
Copy Markdown

sentry bot commented Apr 8, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
SDK Size io.sentry.tests.size 8.37.1 (1) release Install Build

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 303.76 ms 355.92 ms 52.16 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d217708 355.34 ms 381.39 ms 26.05 ms
694d587 312.37 ms 402.77 ms 90.41 ms
27d7cf8 309.43 ms 364.27 ms 54.85 ms
22f4345 314.79 ms 375.02 ms 60.23 ms
5f14e5d 325.76 ms 368.32 ms 42.56 ms
d217708 411.22 ms 430.86 ms 19.63 ms
b8bd880 314.56 ms 336.50 ms 21.94 ms
62b579c 318.48 ms 367.71 ms 49.24 ms
fc5ccaf 276.52 ms 370.46 ms 93.93 ms
d15471f 286.65 ms 314.68 ms 28.03 ms

App size

Revision Plain With Sentry Diff
d217708 1.58 MiB 2.10 MiB 532.97 KiB
694d587 1.58 MiB 2.19 MiB 620.06 KiB
27d7cf8 1.58 MiB 2.12 MiB 549.42 KiB
22f4345 1.58 MiB 2.29 MiB 719.83 KiB
5f14e5d 1.58 MiB 2.19 MiB 620.00 KiB
d217708 1.58 MiB 2.10 MiB 532.97 KiB
b8bd880 1.58 MiB 2.29 MiB 722.92 KiB
62b579c 0 B 0 B 0 B
fc5ccaf 1.58 MiB 2.13 MiB 557.54 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB

@romtsn romtsn merged commit 327ca51 into main Apr 8, 2026
68 checks passed
@romtsn romtsn deleted the rz/perf/improve-init-codepath branch April 8, 2026 12:47
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