Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple regex-based message filtering to text reader #451

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

jfzunigac
Copy link
Contributor

Introducing the config filterMessageRegex so that only messages that match the pattern provided will be returned to the processor. This does not modify the existing TextMessageReader logic, instead we leverage the headers as a DOT so that the processor knows that message should be skipped if it contains the special header skipMessage. The skipping logic is the same as the decider based sampling logic.

@jfzunigac jfzunigac requested a review from a team as a code owner November 15, 2024 19:24
@jfzunigac jfzunigac force-pushed the regex_based_text_filtering branch from 8d087d6 to ae2ebbd Compare November 15, 2024 21:17
@jfzunigac jfzunigac merged commit 6ec6e08 into pinterest:master Nov 15, 2024
1 check passed
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