Repository navigation
ref(android): Inject the executor into init-time components - #6834
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
🚨 Detected changes in high risk code 🚨High-risk code has higher potential to break the SDK and may be hard to test. To prevent severe bugs, apply the rollout process for releasing such changes and be extra careful when changing and reviewing these files:
|
Contributor
PR risk: mediumFor 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-init-executor
branch
from
December 3, 2026 12:24
fcf9137 to
f56f221
Compare
runningcode
force-pushed
the
no/sentryruntime-init-executor
branch
from
December 3, 2026 12:52
f56f221 to
d2985eb
Compare
runningcode
force-pushed
the
no/sentryruntime-init-executor
branch
from
December 3, 2026 14:52
d2985eb to
f6ec7cc
Compare
SentryAndroid.init now creates the executor right after the customer's callback and passes it to everything initializeIntegrationsAndProcessors builds, so those components no longer read it off SentryOptions. The NdkScopeObserver and Sentry.init's own session and observer tasks use it too. Code that can only receive SentryOptions on 8.x, such as the public batch processor factories and the reflective SentryNdk.init, reads the executor through LegacyOptionsBridge.executorOf, which marks each site for 9.0. Part of JAVA-817 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runningcode
force-pushed
the
no/sentryruntime-init-executor
branch
from
December 3, 2026 15:03
f6ec7cc to
4219c6c
Compare
runningcode
marked this pull request as ready for review
December 3, 2026 15:31
runningcode
requested review from
markushi and
romtsn
and removed request for
a team
December 3, 2026 15:31
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
SentryAndroid.initnow creates the executor right after the customer's callback and passes it to everythinginitializeIntegrationsAndProcessorsbuilds. Before, each component read it offSentryOptions.NdkScopeObservertakes the executor in its constructor.SentryOptionson 8.x reads the executor throughLegacyOptionsBridge.executorOf(options). Each of these sites needs a decision in 9.0:Sentry.init;AndroidLoggerBatchProcessorandAndroidMetricsBatchProcessor, created by the publiccreate(options, client)factories;SentryNdk.initandSentryNdkOutproc.init, whichNdkIntegrationcalls by reflection;InternalSentrySdk's session-file deletion.💡 Motivation and Context
Part of JAVA-817. Stacked on #6830.
💚 How did you test it?
NdkScopeObserverTestnow passes its executor in, and the profiler and options-initializer tests pass the executor explicitly.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Retarget to
mainonce #6830 merges. This conflicts with the disk-cache PR on theinitializeIntegrationsAndProcessorssignature; whichever merges second rebases.Sentry.initConfigurations(old-profile cleanup,BackpressureMonitor, JVM continuous profiling) isn't in this PR: on this base it runs beforeInternalServicesis built. #6831 moves that earlier and switches those sites.🤖 Generated with Claude Code
#skip-changelog