Repository navigation
Conversation
On the success path the router reported the router input payload for every status code, so the transformed body actually sent to the destination was never available to reporting. The Events tab needs that body for 296 (Delivered with Warning) to show what was really delivered. Report destinationJob.Message instead of the input payload when the status is 296, and mark the status with payloadStage=delivery so reporting can tell the sample is the delivery body rather than the input event. Scoped strictly to 296 and gated by store296DeliveryPayload, a reloadable per-destType kill-switch (default on) that reverts payload storage without disabling the warnings feature. All other status codes are unchanged. INT-6637 Co-Authored-By: Claude Opus 4.8 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
- rename store296DeliveryPayload -> storeDeliveredWithWarningPayload (field, config key, and test) so the flag reads by intent, not status code - default the flag to false: delivery-payload reporting is opt-in per destType - rename success-branch local successPayload -> responsePayload - drop the empty-delivery-body test case: a 296 always carries a delivered body, so the removed assertion could never fail INT-6637 Co-Authored-By: Claude Opus 4.8 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
- rename success-branch local responsePayload -> payload - note why non-296 success responses omit a payloadStage marker INT-6637 Co-Authored-By: Claude Opus 4.8 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
…y-payload-for-success-scenario-in Resolve conflicts from INT-6636 (PR #7217) landing in master: - utils/types: single DeliveredWithWarningCode constant (both PRs added it) - router/handle.go: keep both storeDeliveredWithWarningPayload (this PR) and supportsDeliveredWithWarnings (INT-6636) - router/worker_test.go: keep both PRs' test functions Co-Authored-By: Claude Opus 4.8 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
…ture/int-6637-rudder-server-add-delivery-payload-for-success-scenario-in 🔒 Scanned for secrets using gitleaks 8.28.0
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7226 +/- ##
==========================================
- Coverage 79.78% 79.74% -0.04%
==========================================
Files 599 599
Lines 66862 66862
==========================================
- Hits 53343 53319 -24
- Misses 10380 10409 +29
+ Partials 3139 3134 -5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
Author
1 task done
ItsSudip
deleted the
feature/int-6637-rudder-server-add-delivery-payload-for-success-scenario-in
branch
July 30, 2026 06:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔒 Scanned for secrets using gitleaks 8.28.0
Description
On the router's success path,
postStatusOnResponseQreported the router input payload (JobT.EventPayload) to reporting for every status code — the success branch hardcodedpayload: inputPayload, so the transformed body actually sent to the destination was never available to reporting.For the 296 "Delivered with Warning" outcome, the Events tab needs to show what was actually delivered, not the input event. This PR reports
destinationJob.Messagefor 296 only.Changes
utils/types: addDeliveredWithWarningCode = 296alongside the existingFilterEventCode/SuppressEventCodeconstants, so the status code isn't a magic number.router/worker.go: in the success branch ofpostStatusOnResponseQ, reportdestinationJob.Messageinstead of the input payload when the status is 296, and setpayloadStage=deliveryon the status so reporting can tell the sample is the delivery body rather than the input event. Non-296 success responses are unchanged (nopayloadStagemarker — noted in a comment).router/handle.go,router/handle_lifecycle.go: addstoreDeliveredWithWarningPayload, a reloadable per-destType bool (defaultfalse, opt-in) mirroring the existingreportJobsdbPayload. Turning it on enables delivery-payload reporting for 296; turning it off reverts it without affecting the warning status or the destination's response body.Scope
The behaviour change is strictly limited to
respStatusCode == 296. 200, the filter code (298), and the failure path are unchanged.Testing
TestPostStatusOnResponseQStoreDeliveredWithWarningPayloadcovers: 296 → delivery body +payloadStage=delivery; 200 → input payload with no marker; 296 with the flag off → input payload; filter code → stillFilteredwith the input payload.go build ./...,go vet, and the fullTestRoutersuite pass.Linear Ticket
https://linear.app/rudderstack/issue/INT-6637/rudder-server-add-delivery-payload-for-success-scenario-in-reporting
Security