Repository navigation
docs(develop): Point the Spotlight spec at sentry local - #21105
Open
sentry-junior[bot] wants to merge 5 commits into
Open
sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
dingsdax
approved these changes
Dec 4, 2026
BYK
approved these changes
Dec 4, 2026
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
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.
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: thespotlightoption,SENTRY_SPOTLIGHT, and the/streamendpoint all stay. So the requirements in the SDK spec are mostly unchanged, and only the parts that describe the server are rewritten:sentry localas the reference server, and the Sentry Local viewer, instead of spotlightjs.com.sentry local run, which replacesspotlight run. A plain run setsSENTRY_SPOTLIGHTtohttp://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, becausesentry localdoesn't do that.SENTRY_SPOTLIGHTURL. Keeping only the host and port breaks session URLs. Adding/stream, as PHP does, still works./stream.http://localhost:8969/streamreaches a plain server only, not the daemon.sentry localdocs.sentry local(Spotlight).Example, with
sentry local run --session web -- npm run dev:sentry localURL ends in/stream, so an SDK could post tohttp://localhost:8969/stream.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):
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-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
EXTRA RESOURCES
via @BYK, @MathurAditya724.
--
View Session [Sentry]