Skip to content

feat(processor): add source_out reporting metric - #7435

Merged
mihir20 merged 2 commits into
masterfrom
pipeline-inspector-gaps/01-source-succeeded
Oct 7, 2026
Merged

mihir20 merged 2 commits into
masterfrom
pipeline-inspector-gaps/01-source-succeeded

Conversation

@mihir20

@mihir20 mihir20 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a source_out reporting PU, emitted once per event at the destination fan-out, as the source-level outcome of an event before it is split per destination:

  • succeeded/200 when the event has at least one candidate destination, whether or not every candidate is then excluded by integrations or consent (those exclusions stay per-destination filtered_* rows);
  • filtered/298 when it has no candidate destination at all. This replaces today's source-level destination_filter/filtered_no_destination row, which was the one source-level row in an otherwise per-destination PU.

Behind Reporting.sourceOutMetrics.enabled (default false): off keeps today's rows exactly, on emits source_out and stops the filtered_no_destination row. Rows carry an empty destination_id and in_pu, keyed per source, event name and event type. destination_enter and the per-destination filtered_* rows are unchanged in both states.

Linear Ticket

PIPE-3451

Security

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

@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.92%. Comparing base (1040511) to head (da7e900).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7435      +/-   ##
==========================================
+ Coverage   84.52%   84.92%   +0.40%     
==========================================
  Files         623      623              
  Lines       62014    62034      +20     
==========================================
+ Hits        52415    52683     +268     
+ Misses       9596     9348     -248     
  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.

@ktgowtham
ktgowtham requested a review from atzoum September 29, 2026 11:02
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch 3 times, most recently from 7731ffd to 48982fe Compare September 29, 2026 11:50

@atzoum atzoum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please advise your LLM to avoid overloading PR descriptions with unnecessary information, such as:

  • Out-of-context references, e.g. Sankey
  • A detailed enumeration of every change
  • A dedicated tests section

The purpose of the PR description is to provide a concise overview of the change, along with any important context that is useful to understand before reading the diff, or information that would not be obvious from the diff itself.

Comment thread utils/types/reporting_types.go Resolved
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 48982fe to 0b1dd5c Compare October 5, 2026 07:39
@mihir20
mihir20 changed the base branch from master to pipeline-inspector-gaps/00-remove-cutover-flags October 5, 2026 07:39
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 0b1dd5c to ddf6c3d Compare October 5, 2026 09:58
@mihir20 mihir20 changed the title feat(processor): add source_succeeded reporting metric feat(processor): add source_out reporting metric Oct 5, 2026
Comment thread processor/processor.go Resolved
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/00-remove-cutover-flags branch from 5eb3973 to d82abf8 Compare October 6, 2026 06:45
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from ddf6c3d to 98b5bb2 Compare October 6, 2026 06:45
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/00-remove-cutover-flags branch from d82abf8 to a6fdfa5 Compare October 6, 2026 07:14
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 98b5bb2 to e8d74be Compare October 6, 2026 07:15
@mihir20
mihir20 requested a review from atzoum October 6, 2026 07:36
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/00-remove-cutover-flags branch from 59b71b9 to 72f2c22 Compare October 6, 2026 09:55
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 1f3c8fd to 2c1ae76 Compare October 6, 2026 09:55
Comment thread utils/types/reporting_types.go Outdated
GATEWAY_INGESTED = "gw_ingested"
DESTINATION_ENTER = "destination_enter"
DESTINATION_FILTER = "destination_filter"
SOURCE_OUT = "source_out"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we reorder the stages here, so that it reflect the actual stage order

Comment thread processor/processor.go
// destinationId and inPU stay empty. The filtered row replaces the source-level
// destination_filter/filtered_no_destination row emitted below, so a zero-candidate
// event is never reported by both PUs.
sourceOutEnabled := proc.isReportingEnabled() && proc.config.reportingSourceOutMetricsEnabled.Load()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets also update getSourceFilteredEventsByNameAndTypeQuery query in reporting

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't understand this. Can you elborate?

Base automatically changed from pipeline-inspector-gaps/00-remove-cutover-flags to master October 7, 2026 08:09
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 2c1ae76 to 8fe9986 Compare October 7, 2026 09:14
Adds a source_out reporting PU emitted once per event at the destination
fan-out, as the source-level outcome of an event before it is split per
destination: succeeded/200 when the event has at least one candidate
destination, whether or not every candidate is then excluded per
destination, and filtered/298 when it has no candidate destination at all.
The filtered row replaces the source-level destination_filter
filtered_no_destination row, which was the one source-level row in an
otherwise per-destination PU.

Behind Reporting.sourceOutMetrics.enabled (default false): off keeps today's
rows exactly, on emits source_out and stops the filtered_no_destination row.
Rows carry an empty destination id and inPU and aggregate per source, event
name and event type. destination_enter and the per-destination filtered_*
rows are unchanged in both states.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.28.0
🔒 Scanned for secrets using gitleaks 8.28.0
@mihir20
mihir20 force-pushed the pipeline-inspector-gaps/01-source-succeeded branch from 8fe9986 to da7e900 Compare October 7, 2026 09:39
@mihir20
mihir20 merged commit 909fba9 into master Oct 7, 2026
112 of 114 checks passed
@mihir20
mihir20 deleted the pipeline-inspector-gaps/01-source-succeeded branch October 7, 2026 11:10
This was referenced Oct 12, 2026
mihir20 pushed a commit that referenced this pull request Oct 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.90.0-rc.1](v1.89.0...v1.90.0-rc.1)
(2026-10-12)


### Features

* **processor:** add source_out reporting metric
([#7435](#7435))
([909fba9](909fba9))
* **processor:** allow disabling event schemas v2 per source
([#7429](#7429))
([a8c12b2](a8c12b2))
* **processor:** report dest_transformer diff rows for multiplexing
destination transformations
([#7446](#7446))
([cd95c32](cd95c32))
* **processor:** report dest_transformer succeeded for destinations
without a destination transformation
([#7445](#7445))
([21f7e41](21f7e41))
* **processor:** report user_transformer succeeded for destinations
without a user transformation
([#7440](#7440))
([f424257](f424257))
* **router:** mask live events destination credentials
([#7460](#7460))
([5fa5fe2](5fa5fe2))
* **warehouse:** add Microsoft Fabric destination
([#7441](#7441))
([74940c2](74940c2))


### Bug Fixes

* **batchrouter:** do not abort warehouse jobs on a zero failure
timestamp
([#7426](#7426))
([506f6d5](506f6d5))
* **batchrouter:** recover snowpipe streaming channels for tables
dropped externally
([#7434](#7434))
([93cd81d](93cd81d))
* **destination:** encode Lytics bulk upload URL values
([#7433](#7433))
([08e6937](08e6937))
* **destination:** retry bqstream transport failures
([#7464](#7464))
([cd3dc3e](cd3dc3e))
* **warehouse:** cap deltalake validation schema describes
([#7444](#7444))
([d119779](d119779))
* **warehouse:** keep snowflake copy credentials out of logs
([#7442](#7442))
([f91747b](f91747b))
* **warehouse:** set explicit lineSep for deltalake csv copy
([#7455](#7455))
([cc22d18](cc22d18))


### Miscellaneous

* migrate self-hosted arm64 docker build runners to gha-runner-scale-set
([#7425](#7425))
([5cdffde](5cdffde))
* **processor:** retire the destination-filter reorder, dedup and
gw_ingested reporting flags
([#7450](#7450))
([1040511](1040511))
* pull openapi-generator through the ECR pull-through cache
([#7449](#7449))
([6e9f920](6e9f920))

---
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>
mihir20 pushed a commit that referenced this pull request Oct 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.90.0](v1.89.0...v1.90.0)
(2026-10-12)


### Features

* **processor:** add source_out reporting metric
([#7435](#7435))
([909fba9](909fba9))
* **processor:** allow disabling event schemas v2 per source
([#7429](#7429))
([a8c12b2](a8c12b2))
* **processor:** report dest_transformer diff rows for multiplexing
destination transformations
([#7446](#7446))
([cd95c32](cd95c32))
* **processor:** report dest_transformer succeeded for destinations
without a destination transformation
([#7445](#7445))
([21f7e41](21f7e41))
* **processor:** report user_transformer succeeded for destinations
without a user transformation
([#7440](#7440))
([f424257](f424257))
* **router:** mask live events destination credentials
([#7460](#7460))
([5fa5fe2](5fa5fe2))
* **warehouse:** add Microsoft Fabric destination
([#7441](#7441))
([74940c2](74940c2))


### Bug Fixes

* **batchrouter:** do not abort warehouse jobs on a zero failure
timestamp
([#7426](#7426))
([506f6d5](506f6d5))
* **batchrouter:** recover snowpipe streaming channels for tables
dropped externally
([#7434](#7434))
([93cd81d](93cd81d))
* **destination:** encode Lytics bulk upload URL values
([#7433](#7433))
([08e6937](08e6937))
* **destination:** retry bqstream transport failures
([#7464](#7464))
([cd3dc3e](cd3dc3e))
* **warehouse:** cap deltalake validation schema describes
([#7444](#7444))
([d119779](d119779))
* **warehouse:** keep snowflake copy credentials out of logs
([#7442](#7442))
([f91747b](f91747b))
* **warehouse:** set explicit lineSep for deltalake csv copy
([#7455](#7455))
([cc22d18](cc22d18))


### Miscellaneous

* migrate self-hosted arm64 docker build runners to gha-runner-scale-set
([#7425](#7425))
([5cdffde](5cdffde))
* **processor:** retire the destination-filter reorder, dedup and
gw_ingested reporting flags
([#7450](#7450))
([1040511](1040511))
* pull openapi-generator through the ECR pull-through cache
([#7449](#7449))
([6e9f920](6e9f920))

---
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