Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shaan420
Copy link
Contributor

@shaan420 shaan420 commented Sep 23, 2025

What this PR does / why we need it:
Today m3msg supports multiple ways to filter msgs towards the consumer services:

  • ShardSets
  • Percentage
  • StoragePolicy

These are not flexible enough to select a customized subset of metrics to filter. We will define another field in the PipelineMetadata struct called RoutingPolicy which will capture the traffic type for that metric. This way a consumer can register interest in the traffic types and receive only those metrics.
A strict design goal choice for this feature is that it be backwards compatible. i.e. Any existing use of filters and consumer services will not be modified.
The RoutingPolicy should be set in the metric metadata when sending over the aggregator-client.
This PR only plumbs the routingPolicy through the aggregator path without performing the actual filtering on the m3msg end. There will be a subsequent diff that adds this filtering support.

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:


@shaan420 shaan420 force-pushed the snair/support-ingestion-route-policy branch from 1733e82 to 3ca53d9 Compare September 24, 2025 17:29
@shaan420 shaan420 changed the title Support Ingestion Route Policy Support Ingestion Routing Policy Sep 26, 2025
@shaan420 shaan420 force-pushed the snair/support-ingestion-route-policy branch 2 times, most recently from 89e27a1 to 40faf1a Compare September 30, 2025 19:56
RoutingPolicy policy.RoutingPolicy `json:"routingPolicy,omitempty"`
}

func (m PipelineMetadata) String() string {
Copy link
Contributor

@fredtsun fredtsun Sep 30, 2025

Choose a reason for hiding this comment

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

just noticed when i was debugging, can we add RoutingPolicy to this as well? (the String() func)

@shaan420 shaan420 force-pushed the snair/support-ingestion-route-policy branch from d395eed to ef59441 Compare October 15, 2025 01:14
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.

2 participants