Skip to content

feat(api): export OpenAPI routing metadata - #127778

Merged
betegon merged 1 commit into
masterfrom
bt/openapi-routing-metadata
Oct 22, 2026
Merged

betegon merged 1 commit into
masterfrom
bt/openapi-routing-metadata

Conversation

@betegon

@betegon betegon commented Oct 16, 2026

Copy link
Copy Markdown
Member

Adds operation metadata from existing backend declarations, providing the foundation for metadata-driven routing in @sentry/api:

{
  "x-sentry-routing": {
    "silo": "cell",
    "organizationParameter": "organization_id_or_slug"
  }
}

control, cell, both, and unknown describe declared availability. This does not change runtime routing, endpoint publication, or request/response contracts. Organization locality remains runtime information for the next SDK step.

Sentry Docs explicitly selects the fields it renders, so API reference pages remain unchanged. Displaying this metadata would require an explicit docs change; the published OpenAPI schema gains the extension.

Verified with 27 tests, lint/mypy, and a full OpenAPI build. Removing the extension produces the unchanged schema.

Part of getsentry/sentry-api-schema#81 and getsentry/sentry-api-schema#93.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@betegon
betegon marked this pull request as ready for review October 19, 2026 09:59
@betegon
betegon requested a review from a team as a code owner October 19, 2026 09:59
@betegon
betegon force-pushed the bt/openapi-routing-metadata branch from 388d3f1 to aa70369 Compare October 19, 2026 09:59
@betegon
betegon requested review from sergical and sfanahata October 19, 2026 10:08

@sergical sergical 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.

from the docs side of things i think this is okay, thanks

@betegon
betegon force-pushed the bt/openapi-routing-metadata branch from aa70369 to 572d9bb Compare October 19, 2026 19:17
@betegon
betegon merged commit 6f0dcc1 into master Oct 22, 2026
87 of 88 checks passed
@betegon
betegon deleted the bt/openapi-routing-metadata branch October 22, 2026 12:35
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