Skip to content

docs(develop): Point the Spotlight spec at sentry local - #21105

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

sentry-junior[bot] wants to merge 5 commits into
masterfrom
byk/spotlight-to-sentry-local-develop-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 side of Spotlight doesn't change: the spotlight option, SENTRY_SPOTLIGHT, and the /stream endpoint all stay. So the requirements in the SDK spec are mostly unchanged, and only the parts that describe the server are rewritten:

  • Intro: names sentry local as the reference server, and the Sentry Local viewer, instead of spotlightjs.com.
  • Environment Variable Handling: describes sentry local run, which replaces spotlight run. A plain run sets SENTRY_SPOTLIGHT to http://localhost:<port>/stream. With --session, it sets the session's ingest URL on the Local daemon, which has the session in its path and no /stream. The old Docker Compose and emulator host-rewriting promises are dropped, because sentry local doesn't do that.
  • URL String Values: SDKs must keep the path of the SENTRY_SPOTLIGHT URL. Keeping only the host and port breaks session URLs. Adding /stream, as PHP does, still works.
  • Envelope Transmission: lists the paths a plain server and a session accept. The daemon takes no envelopes on its root /stream.
  • Default URL: notes that http://localhost:8969/stream reaches a plain server only, not the daemon.
  • References: link the sentry local docs.
  • Assigned ports: the 8969 row now says sentry local (Spotlight).

Example, with sentry local run --session web -- npm run dev:

  • Before: the spec implied every sentry local URL ends in /stream, so an SDK could post to http://localhost:8969/stream.
  • After: SENTRY_SPOTLIGHT=http://localhost:8969/_local/v1/sessions/<id>/ingest, and the SDK posts to that URL with its path kept.

Open question: the new "keep the path" rule is a MUST. The Ruby SDK keeps only the host and port today, so it would be out of spec until it changes.

The user-facing pages are updated in #21104.

Screenshots

"Environment Variable Handling" section of the SDK spec (before the routing update):

Before After

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
develop-docs Ready Ready Preview Dec 5, 2026 4:15am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-docs Ignored Ignored Preview Dec 5, 2026 4:15am UTC

Request Review

@github-actions github-actions Bot added sdk-develop-docs PRs touching develop-docs/sdk Priority: Normal Docs review has no urgent deadline labels Dec 4, 2026
@BYK
BYK requested a review from MathurAditya724 December 4, 2026 19:06
Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
Plain receivers take /stream, but daemon sessions use an ingest URL with
the session in its path. SDKs must send to the SENTRY_SPOTLIGHT URL as
given.

Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
sentry local sessions accept <ingestUrl>/stream, which PHP posts to, so
only dropping or replacing the path breaks them.

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

This branch was successfully deployed

1 active deployment
Preview – develop-docs — e179ce24 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 sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants