Skip to content

feat(dev): Add SENTRY_CELL_ROUTING env var that runs cell-routing mode locally#115852

Merged
lynnagara merged 1 commit into
masterfrom
cell-routing-devserver
May 20, 2026
Merged

feat(dev): Add SENTRY_CELL_ROUTING env var that runs cell-routing mode locally#115852
lynnagara merged 1 commit into
masterfrom
cell-routing-devserver

Conversation

@lynnagara
Copy link
Copy Markdown
Member

When set, configures the dev server so cell-scoped API XHRs (/api/0/organizations/{slug}/*) target Synapse on :13000 while UI rendering and control API stay on the sentry devserver at :8000. Flips system:multi-region and points system.region-api-url-template at the Synapse port so the frontend's regionUrl bootstrap picks it up.

Should be run together with devservices --mode cell-routing for the matching Synapse proxy/ingest-router containers.

Updates agent skill with information about how to run cell-routing mode.

When set, configures the dev server so cell-scoped API XHRs
(/api/0/organizations/{slug}/*) target Synapse on :13000 while UI
rendering and control API stay on the sentry devserver at :8000.
Flips system:multi-region and points system.region-api-url-template at
the Synapse port so the frontend's regionUrl bootstrap picks it up.

Should be run together with devservices --mode cell-routing for the
matching Synapse proxy/ingest-router containers.

Updates agent skill with information about how to run cell-routing
mode.
@lynnagara lynnagara requested review from a team as code owners May 19, 2026 22:09
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 19, 2026
@lynnagara lynnagara changed the title feat(dev): Add SENTRY_CELL_ROUTING env var for local Synapse testing feat(dev): Add SENTRY_CELL_ROUTING env var that runs cell-routing mode locally May 19, 2026
Comment thread src/sentry/conf/server.py
SENTRY_OPTIONS["system.region-api-url-template"] = "http://dev.getsentry.net:13000"
SENTRY_OPTIONS["system.organization-base-hostname"] = "{slug}.dev.getsentry.net:8000"
SENTRY_OPTIONS["system.organization-url-template"] = "http://{hostname}"
SENTRY_FEATURES["system:multi-region"] = True
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.

With this flag on sentry is going to want to be run in siloed mode and I think behind ngrok.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i wasn't using ngrok in my testing, it doesn't seem to be required

@lynnagara lynnagara merged commit 6bcac51 into master May 20, 2026
85 checks passed
@lynnagara lynnagara deleted the cell-routing-devserver branch May 20, 2026 18:14
JonasBa pushed a commit that referenced this pull request May 21, 2026
…e locally (#115852)

When set, configures the dev server so cell-scoped API XHRs
(/api/0/organizations/{slug}/*) target Synapse on :13000 while UI
rendering and control API stay on the sentry devserver at :8000. Flips
system:multi-region and points system.region-api-url-template at the
Synapse port so the frontend's regionUrl bootstrap picks it up.

Should be run together with devservices --mode cell-routing for the
matching Synapse proxy/ingest-router containers.

Updates agent skill with information about how to run cell-routing mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants