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

fix(filter): Apply transaction name filter to transaction events #2284

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jul 6, 2023

The transaction name filter is used to drop health check and ping transaction
events. The original PR missed to check for the event type and also dropped
errors. This patch adds a check for the event type and lets all errors through.

@jan-auer jan-auer requested a review from a team July 6, 2023 08:48
if event.ty.value() != Some(&EventType::Transaction) {
return false;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add the unit test at least to make sure this won't happen again?

Copy link
Contributor

Choose a reason for hiding this comment

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

Will add test, will also fix the currently failing tests (that do not have the event type set)

@RaduW RaduW self-requested a review July 6, 2023 09:02
@RaduW RaduW requested a review from olksdr July 6, 2023 09:27
@RaduW RaduW merged commit 9eb2b99 into master Jul 6, 2023
@RaduW RaduW deleted the fix/tx-filter-event-type branch July 6, 2023 09:47
@rcuhljr
Copy link

rcuhljr commented Jul 6, 2023

Thank you! Much appreciate the fix as I encountered this in the wild.

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.

4 participants