Skip to content

fix(router): report destination status for v1 proxy deliveries in transformer_outgoing_request_count - #7482

Merged
maheshkutty merged 1 commit into
masterfrom
fix/int-7375-proxy-outgoing-request-dest-status
Oct 15, 2026
Merged

maheshkutty merged 1 commit into
masterfrom
fix/int-7375-proxy-outgoing-request-dest-status

Conversation

@maheshkutty

Copy link
Copy Markdown
Contributor

Description

For destinations delivered through the transformer proxy, transformer_outgoing_request_count / transformer_outgoing_request_latency were tagged with the HTTP status of the router → transformer proxy call (ProxyRequestStatusCode). For v1 proxy that status is always 200 (the transformer only propagates a non-200 when there is an authErrorCategory), so destination 429s/5xx never showed up per endpointPath. While debugging a Braze rate-limit incident this made /users/track look healthy (users/track | 200) while every delivery was being 429'd.

The destination status is already in the proxy response body as output.status, but ProxyResponseV1 didn't parse it.

Changes

  • ProxyResponseV1 parses status; the v1 adapter carries it through TransResponse into a new ProxyRequestResponse.DestinationStatusCode.
  • ProxyRequestResponse.DeliveryStatusCode() returns DestinationStatusCode, falling back to ProxyRequestStatusCode when it is 0 (v0 adapter, early proxy errors, missing field).
  • router/worker.go: the proxy branch records resp.DeliveryStatusCode(). Non-proxy branch unchanged (it already records the real destination status).
  • v0 unchanged — its HTTP status already mirrors the destination status.

Trade-offs / impact

  • Semantics change for an existing series: v1 proxy destinations will now report real 4xx/5xx on transformer_outgoing_request_count where they previously reported 200. This makes proxy and non-proxy series consistent, but dashboards/alerts filtering transformerProxy="true" + statusCode="200" will shift.
  • The value is request-level, not per-job; per-job outcomes remain in router_response_counts.

Testing

  • New proxy case: transformer replies HTTP 200 with output.status: 429 → ProxyRequestStatusCode=200, DestinationStatusCode=429.
  • All existing TestProxyRequestWithOAuthV2 cases now also assert DestinationStatusCode (0 for v0/error paths).
  • TestV1Adapter asserts status is parsed; unit test for the DeliveryStatusCode() fallback.
  • go test ./router/transformer/ passes; ./router/ Ginkgo suite 36/36 passed locally (Docker-backed tests not run locally).

Linear Ticket

https://linear.app/rudderstack/issue/INT-7375

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

🤖 Generated with Claude Code

…nsformer_outgoing_request_count

For transformer-proxied deliveries the metric recorded the router -> transformer
HTTP status, which is always 200 for v1 proxy, hiding destination 429s/5xx per
endpointPath. Parse output.status from the v1 proxy response and record it,
falling back to the proxy status when absent (v0, early proxy errors).

Resolves INT-7375

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.04%. Comparing base (5caff53) to head (5eb1d9d).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7482      +/-   ##
==========================================
- Coverage   85.05%   85.04%   -0.02%     
==========================================
  Files         632      632              
  Lines       62871    62876       +5     
==========================================
- Hits        53473    53470       -3     
- Misses       9395     9403       +8     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maheshkutty
maheshkutty merged commit bba1c21 into master Oct 15, 2026
111 of 115 checks passed
@maheshkutty
maheshkutty deleted the fix/int-7375-proxy-outgoing-request-dest-status branch October 15, 2026 09:05
This was referenced Oct 19, 2026
mihir20 pushed a commit that referenced this pull request Oct 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.91.0-rc.1](v1.90.0...v1.91.0-rc.1)
(2026-10-19)


### Features

* **jobsdb:** pending events gauge for the gw jobsdb
([#7447](#7447))
([fc539c4](fc539c4))
* **processor:** report event_filter drops per reason and stop its
succeeded rows
([#7454](#7454))
([5caff53](5caff53))


### Bug Fixes

* **processor:** exclude dropped jobs from tracked users and activation
records
([#7485](#7485))
([526602c](526602c))
* **router:** report destination status for v1 proxy deliveries in
transformer_outgoing_request_count
([#7482](#7482))
([bba1c21](bba1c21))


### Miscellaneous

* bump sqlconnect-go to v1.34.0
([#7479](#7479))
([71e8cfa](71e8cfa))
* stop setting in_reported_by on report rows
([#7458](#7458))
([814d149](814d149))
* sync release v1.90.0 to main branch
([#7475](#7475))
([d05fcbb](d05fcbb))
* **tooling:** move rudder-server test MinIO to Silo
([#7469](#7469))
([935bf59](935bf59))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Oct 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.91.0-rc.2](v1.90.0...v1.91.0-rc.2)
(2026-10-20)


### Features

* **jobsdb:** pending events gauge for the gw jobsdb
([#7447](#7447))
([fc539c4](fc539c4))
* **processor:** report event_filter drops per reason and stop its
succeeded rows
([#7454](#7454))
([5caff53](5caff53))


### Bug Fixes

* **destination:** authenticate marketo bulk uploads with bearer token
([#7510](#7510))
([3eaffad](3eaffad))
* **processor:** exclude dropped jobs from tracked users and activation
records
([#7485](#7485))
([526602c](526602c))
* **router:** enable live events payload masking by default
([#7500](#7500))
([8b5c22d](8b5c22d))
* **router:** mask multi-request delivery payloads
([#7476](#7476))
([f65572e](f65572e))
* **router:** mask reporting sample event secrets
([#7497](#7497))
([833d694](833d694))
* **router:** report destination status for v1 proxy deliveries in
transformer_outgoing_request_count
([#7482](#7482))
([bba1c21](bba1c21))


### Miscellaneous

* bump sqlconnect-go to v1.34.0
([#7479](#7479))
([71e8cfa](71e8cfa))
* stop setting in_reported_by on report rows
([#7458](#7458))
([814d149](814d149))
* sync release v1.90.0 to main branch
([#7475](#7475))
([d05fcbb](d05fcbb))
* **tooling:** move rudder-server test MinIO to Silo
([#7469](#7469))
([935bf59](935bf59))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Oct 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.91.0](v1.90.0...v1.91.0)
(2026-10-20)


### Features

* **jobsdb:** pending events gauge for the gw jobsdb
([#7447](#7447))
([fc539c4](fc539c4))
* **processor:** report event_filter drops per reason and stop its
succeeded rows
([#7454](#7454))
([5caff53](5caff53))


### Bug Fixes

* **destination:** authenticate marketo bulk uploads with bearer token
([#7510](#7510))
([3eaffad](3eaffad))
* **processor:** exclude dropped jobs from tracked users and activation
records
([#7485](#7485))
([526602c](526602c))
* **router:** enable live events payload masking by default
([#7500](#7500))
([8b5c22d](8b5c22d))
* **router:** mask multi-request delivery payloads
([#7476](#7476))
([f65572e](f65572e))
* **router:** mask reporting sample event secrets
([#7497](#7497))
([833d694](833d694))
* **router:** report destination status for v1 proxy deliveries in
transformer_outgoing_request_count
([#7482](#7482))
([bba1c21](bba1c21))


### Miscellaneous

* bump sqlconnect-go to v1.34.0
([#7479](#7479))
([71e8cfa](71e8cfa))
* stop setting in_reported_by on report rows
([#7458](#7458))
([814d149](814d149))
* sync release v1.90.0 to main branch
([#7475](#7475))
([d05fcbb](d05fcbb))
* **tooling:** move rudder-server test MinIO to Silo
([#7469](#7469))
([935bf59](935bf59))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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.

3 participants