Skip to content

[pull] master from getsentry:master#1838

Merged
pull[bot] merged 4 commits into
KingDEV95:masterfrom
getsentry:master
Mar 31, 2026
Merged

[pull] master from getsentry:master#1838
pull[bot] merged 4 commits into
KingDEV95:masterfrom
getsentry:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 31, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

shellmayr and others added 4 commits March 31, 2026 09:39
- The API response cannot be relied upon to be correctly sorted
currently
- Quick frontend fix is to sort on the frontend

Closes TET-2150
…tegrations (#110324)

When stack trace frames lack inline source context, this feature fetches
the file from the configured SCM integration (GitHub, GitLab, Perforce)
and returns the surrounding lines via a new API endpoint.

- New endpoint: /projects/{org}/{project}/stacktrace-source-context/
- New utility: fetch_source_context_from_scm() with caching
- Feature-flagged behind organizations:scm-source-context

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
This changes the `apigateway` proxy to be async, with the idea to serve
the relevant deployment of control silo in ASGI rather than WSGI.

The rationale here is to avoid situations in which we exhaust the
server's threadpool by just waiting for apigateway requests to complete,
as we saw in INCs 2054/2056.

**Note:** the APIGateway changes are gated into a separated Python
module, the async flow is enabled through `SENTRY_ASYNC_APIGW`
environment variable. This allows us to control the rollout of the
change in prod. Tests and local devserver are instead always using the
new code.

Detailed changes:
- [x] Make APIGateway proxy `async`, switching inner client impl from
`requests` to `httpx`
- [x] Change APIGateway middleware to work both in ASGI and WSGI
contexts (with the latter using `async_to_sync`)
- [x] Update relevant tests interacting with APIGateway
- [x] Fix proxy acceptance test
- <s> Fix ORM calls in the custom SDK integration</s>
- [x] Bypass ORM calls in SDK custom logging integration
- [x] Restore/adapt circuit brakers
@pull pull Bot locked and limited conversation to collaborators Mar 31, 2026
@pull pull Bot added the ⤵️ pull label Mar 31, 2026
@pull pull Bot merged commit fe3ee31 into KingDEV95:master Mar 31, 2026
@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⤵️ pull Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants