Skip to content

docs(spotlight): Point Spotlight setup at sentry local - #21104

Open
sentry-junior[bot] wants to merge 3 commits into
masterfrom
byk/spotlight-to-sentry-local-docs
Open

sentry-junior[bot] wants to merge 3 commits into
masterfrom
byk/spotlight-to-sentry-local-docs

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Spotlight's standalone app and sidecar are being deprecated in favor of sentry local (Sentry CLI v4). The SDK spotlight options stay. SDKs keep sending to a Spotlight-compatible /stream endpoint, and sentry local provides one. So this PR rewrites the Spotlight pages in place instead of redirecting them:

  • Android, Java, Capacitor, and React Native Spotlight pages link sentry local and the Sentry Local viewer instead of spotlightjs.com and the sidecar. They share a new include, includes/sentry-local-serve.mdx, with the install and sentry local serve steps, plus what to do when the Local daemon already holds port 8969.
  • --session: the mobile pages say not to use it at all. A session server refuses /stream on its root, whatever the device, and it also rejects the Android emulator's 10.0.2.2.
  • Physical devices: sentry local listens only on localhost by default, while Spotlight's sidecar listened on every interface. The pages now say to start it with sentry local serve --host 0.0.0.0.
  • Java and Apple don't read SENTRY_SPOTLIGHT, so their pages use serve to stay on the default URL's port.
  • Python and Ruby spotlight options say that sentry local run sets SENTRY_SPOTLIGHT, from which SDK version that works (Python 2.47.0, sentry-ruby 5.20), and that setting the option to a URL overrides it.
  • React Native integrations index links sentry local.

Example, React Native on a physical phone:

  • Before: run sentry local serve and events never arrive, because the server only listens on localhost.
  • After: the page says to run sentry local serve --host 0.0.0.0, which accepts the phone's requests.

The migration guides, the JS troubleshooting page, and the Symfony sample stay as they are. Their Spotlight mentions are historical renames or still accurate.

sentry local behavior the emulator guidance relies on, the same in Sentry CLI 0.51.0 and 4.0.1 (loopback test with an Android emulator's Host: 10.0.2.2:8969 header):

Server POST /stream POST /api/0/envelope/ Session ingest URL
sentry local serve 200 200 n/a
sentry local serve --session 403 n/a 403 (200 with a localhost Host header)

Open items:

  • No real emulator or device has been tested end to end. The --host 0.0.0.0 advice for physical devices comes from the CLI source, not a device run.
  • Link the cli.sentry.dev "Migrating from Spotlight" page once it's published (docs(cli): Add a Migrating from Spotlight guide toolkit#2912). Until then, these pages link /commands/local/.

Screenshots

Taken before the latest wording fixes:

Before After
Android Spotlight page
React Native Spotlight page

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: 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 supplied a deadline.

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

EXTRA RESOURCES

via @BYK, @MathurAditya724.

--

View Session [Sentry]

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK December 4, 2026 08:46
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Dec 5, 2026 7:39am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Dec 5, 2026 7:39am UTC

Request Review

@philprime philprime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM for Apple

@codeowner-assignment
codeowner-assignment Bot requested review from a team and NinjaLikesCheez and removed request for a team December 4, 2026 19:10
…r sentry local

A session server refuses /stream on every target, not only the Android
emulator. sentry local serve binds to localhost, so physical devices need
--host 0.0.0.0. Also cover the daemon holding port 8969, and when the
Python and Ruby options override SENTRY_SPOTLIGHT.

Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 0737823b Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants