Repository navigation
ref(android): Hand InternalServices to the SDK's integrations - #6832
Open
runningcode wants to merge 1 commit into
Open
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
Contributor
PR risk: highFor commit Main concerns: reach, public contract, host performance. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
runningcode
force-pushed
the
no/sentryruntime-foundation
branch
from
December 3, 2026 12:24
4b9b580 to
a993645
Compare
runningcode
force-pushed
the
no/sentryruntime-integrations
branch
from
December 3, 2026 12:24
9c190de to
2daac80
Compare
runningcode
force-pushed
the
no/sentryruntime-integrations
branch
from
December 3, 2026 12:52
2daac80 to
793c9bb
Compare
runningcode
force-pushed
the
no/sentryruntime-integrations
branch
from
December 3, 2026 14:51
793c9bb to
619f3c5
Compare
The SDK's integrations become InternalIntegrations, so Sentry.init passes them InternalServices and they take their executor and envelope cache from it instead of from SentryOptions. Their two-argument register keeps working by building InternalServices over the internal services on the options. The ANR, Tombstone and MemoryLimiter tests now build strict InternalServices holding only what each integration uses. Part of JAVA-817 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runningcode
force-pushed
the
no/sentryruntime-integrations
branch
from
December 3, 2026 15:03
619f3c5 to
8db9e2f
Compare
runningcode
marked this pull request as ready for review
December 3, 2026 15:26
runningcode
requested review from
0xadam-brown and
markushi
and removed request for
a team
December 3, 2026 15:27
This branch has not been deployed
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.
📜 Description
The SDK's integrations implement
InternalIntegration, soSentry.initpasses themInternalServicesand they take their executor and envelope cache from it instead of fromSentryOptions.ANR v2,TombstoneandMemoryLimiteruse both the executor and the cache, and they move here in full rather than being split across the cache and executor PRs.ActivityLifecycle,Anr,AppComponentsBreadcrumbs,EnvelopeFileObserver,FeedbackShake,SendCachedEnvelope,SystemEventsBreadcrumbs,AnrProfiling, andSendCachedEnvelopeFireAndForgetinsentry) store the executor fromInternalServicesin avolatilefield.registerstaysfinalwhere it was.💡 Motivation and Context
Part of JAVA-817. Stacked on #6830.
💚 How did you test it?
The ANR, Tombstone and MemoryLimiter tests now use strict test
InternalServices. Other integration tests are unchanged and still go through the two-argumentregister.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Retarget to
mainonce #6830 merges.🤖 Generated with Claude Code
#skip-changelog