Skip to content

Conversation

@tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Sep 19, 2025

This is a big change, however this should not break anything. Users that run Relay in Proxy mode should not experience any negative side effects.

With the recent changes to the Relay modes (#5108, #5057, #5053) it became apparent that the proxy mode is currently doing more than strictly necessary. That is, the logic is currently more complex than it needs to be and as such it also is less efficient than it could be. This PR tries to rectify this by making Proxy mode more of a 'pure' Proxy by introducing the ProxyProcessorService which is a simplified version of the EnvelopeProcessorService. There are also some changes to the HealthCheckServiceAutoscalingMetricService and RelayStats to make these compatible.

Fixes: https://linear.app/getsentry/issue/INGEST-581/simplify-proxy-mode

@tobias-wilfert tobias-wilfert self-assigned this Sep 19, 2025
@tobias-wilfert tobias-wilfert changed the title WIP: Simplify Proxy Mode ref(relay_mode): Simplify Proxy Mode Oct 14, 2025
@tobias-wilfert tobias-wilfert changed the title ref(relay_mode): Simplify Proxy Mode feat(relay): Simplify Proxy Mode Oct 14, 2025
cursor[bot]

This comment was marked as outdated.

@tobias-wilfert tobias-wilfert added this pull request to the merge queue Oct 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 21, 2025
@tobias-wilfert tobias-wilfert added this pull request to the merge queue Oct 22, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2025
This is a big change, however this should not break anything. Users that
run Relay in Proxy mode should not experience any negative side effects.

With the recent changes to the Relay modes
(#5108,
#5057,
#5053) it became apparent that
the proxy mode is currently doing more than strictly necessary. That is,
the logic is currently more complex than it needs to be and as such it
also is less efficient than it could be. This PR tries to rectify this
by making Proxy mode more of a 'pure' Proxy by introducing
the `ProxyProcessorService` which is a simplified version of
the `EnvelopeProcessorService`. There are also some changes to the
`HealthCheckService`, `AutoscalingMetricService` and `RelayStats` to
make these compatible.

Fixes: https://linear.app/getsentry/issue/INGEST-581/simplify-proxy-mode
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2025
@tobias-wilfert tobias-wilfert added this pull request to the merge queue Oct 22, 2025
Merged via the queue into master with commit bd9e7c2 Oct 22, 2025
41 of 46 checks passed
@tobias-wilfert tobias-wilfert deleted the tobias-wilfert/feat/simplify-proxy-mode branch October 22, 2025 08:04
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2025
Now that #5165 has landed, we can cleanup the proxy mode handling in the
new processing pipelines.

This simplifies a bunch of code as the output now is always processed.
This was always a bit messy and temporary and put in as a reminder to
deal with proxy mode properly. Now that it is in, we can clean it up :)
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2025
…ts` (#5282)

During the recent creation of the `ProxyProcessorService` it was
rightfully [pointed
out](#5165 (comment))
that we probably want to clean up the unwraps.
This PR replaces the unwraps, both in the new `ProxyProcessorService`
and the `EnvelopeProcessorService`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants