feat(spotlight): Extract SpotlightIntegration to separate module#5064
Merged
feat(spotlight): Extract SpotlightIntegration to separate module#5064
Conversation
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
Contributor
|
...-opentelemetry-core/src/main/java/io/sentry/opentelemetry/OtelInternalSpanDetectionUtil.java
Outdated
Show resolved
Hide resolved
sentry-spotlight/src/main/java/io/sentry/spotlight/SpotlightIntegration.java
Show resolved
Hide resolved
sentry-spotlight/src/test/java/io/sentry/util/SpotlightPlatformTestManipulator.kt
Show resolved
Hide resolved
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fc5ccaf | 322.49 ms | 405.25 ms | 82.76 ms |
| e59e22a | 329.74 ms | 383.31 ms | 53.57 ms |
| ae7fed0 | 293.84 ms | 380.22 ms | 86.38 ms |
| fcec2f2 | 314.96 ms | 373.66 ms | 58.70 ms |
| dba088c | 320.59 ms | 361.29 ms | 40.70 ms |
| b03edbb | 314.90 ms | 350.22 ms | 35.33 ms |
| ee747ae | 358.21 ms | 389.41 ms | 31.20 ms |
| b6702b0 | 395.86 ms | 409.98 ms | 14.12 ms |
| fcec2f2 | 328.91 ms | 387.75 ms | 58.84 ms |
| dcc6bbf | 382.58 ms | 462.13 ms | 79.54 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fc5ccaf | 1.58 MiB | 2.13 MiB | 557.54 KiB |
| e59e22a | 1.58 MiB | 2.20 MiB | 635.34 KiB |
| ae7fed0 | 1.58 MiB | 2.12 MiB | 551.77 KiB |
| fcec2f2 | 1.58 MiB | 2.12 MiB | 551.50 KiB |
| dba088c | 1.58 MiB | 2.13 MiB | 558.99 KiB |
| b03edbb | 1.58 MiB | 2.13 MiB | 557.32 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| b6702b0 | 1.58 MiB | 2.12 MiB | 551.79 KiB |
| fcec2f2 | 1.58 MiB | 2.12 MiB | 551.50 KiB |
| dcc6bbf | 1.58 MiB | 2.12 MiB | 553.10 KiB |
Previous results on branch: rz/fix/spotlight-insecure-url
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| c69dea4 | 274.93 ms | 334.36 ms | 59.43 ms |
| 01f0c4b | 311.54 ms | 366.76 ms | 55.21 ms |
| e3de960 | 320.22 ms | 388.88 ms | 68.66 ms |
| 76153f6 | 307.83 ms | 352.64 ms | 44.81 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| c69dea4 | 1.58 MiB | 2.19 MiB | 619.18 KiB |
| 01f0c4b | 1.58 MiB | 2.19 MiB | 619.16 KiB |
| e3de960 | 1.58 MiB | 2.19 MiB | 619.17 KiB |
| 76153f6 | 1.58 MiB | 2.19 MiB | 619.17 KiB |
c000776 to
f93665c
Compare
sentry-spotlight/src/main/java/io/sentry/spotlight/SpotlightIntegration.java
Show resolved
Hide resolved
sentry-spotlight/src/main/java/io/sentry/spotlight/SpotlightIntegration.java
Show resolved
Hide resolved
markushi
approved these changes
Jan 29, 2026
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
3 tasks
6 tasks
romtsn
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Feb 10, 2026
## DESCRIBE YOUR PR Add documentation for the new `sentry-spotlight` module extracted in [sentry-java#5064](getsentry/sentry-java#5064) (available from 8.32.0). This module allows Android users to include Spotlight only in debug builds via `debugImplementation`, preventing insecure HTTP URLs from leaking into production APKs. - Add Android Spotlight integration page (`/platforms/android/integrations/spotlight/`) with AndroidManifest.xml and programmatic configuration - Add Java Spotlight integration page (`/platforms/java/integrations/spotlight/`) with Gradle, Maven, and SBT install snippets ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) --------- Co-authored-by: Claude <noreply@anthropic.com>
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
Move SpotlightIntegration to a new sentry-spotlight module to allow
excluding it from release builds, preventing insecure HTTP URLs from
appearing in APKs and triggering security scanner warnings.
This change:
load SpotlightIntegration when the module is available
io.sentry.spotlight.enabled and io.sentry.spotlight.url
@InternalannotationBreaking Change: Users who enable Spotlight must now add the
io.sentry:sentry-spotlight dependency to their project.
💡 Motivation and Context
Fixes #3259
Fixes #3690
💚 How did you test it?
Existing tests
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
.craft.ymlto get auto-releases