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

#4377 - Configure include and exclude patterns for logged events #4490

Merged
merged 12 commits into from
Feb 4, 2024

Conversation

serwarde
Copy link
Contributor

@serwarde serwarde commented Feb 1, 2024

What's in the PR

  • Deprecated exclude events.
  • Introduced include and exclude patterns.
  • Including everything (.*) by default, and excluding a predefined set of events by default.
  • Refactored EventLoggingListener to use the new include and exclude patterns.
  • Added tests.

How to test manually

  • N/A

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

- Deprecated exclude events.
- Introduced include and exclude patterns.
- Including everything (.*) by default, and excluding a predefined set of events by default.
- Refactored EventLoggingListener to use the new include and exclude patterns.
- Added tests.
@serwarde serwarde requested a review from reckart February 1, 2024 15:44
@serwarde serwarde linked an issue Feb 1, 2024 that may be closed by this pull request
@reckart reckart force-pushed the feature/4377-configure-patterns-for-logged-events branch from 796a741 to 0eaa21d Compare February 2, 2024 10:28
serwarde and others added 8 commits February 2, 2024 19:43
- Optimized event name logging with pattern caching to avoid repetitive pattern processing.
- Added assertion to check that event not in exclude list.
- Moved shouldLogEvent to EventLoggingListener as a package-private method to keep EventLoggingProperties a data class.
- Removed unit test for EventLoggingPropertiesImplTest.
- Added unit test for EventLoggingListenerTest to test shouldLogEvent method.
@reckart reckart added the ⭐️ Enhancement New feature or request label Feb 4, 2024
@reckart reckart added this to the 31.0 milestone Feb 4, 2024
Copy link
Member

@reckart reckart left a comment

Choose a reason for hiding this comment

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

Thanks :)

- Treat an empty include patterns set as "include all"
- Bit of cleaning up
@reckart reckart merged commit c889fa1 into main Feb 4, 2024
1 of 2 checks passed
@reckart reckart deleted the feature/4377-configure-patterns-for-logged-events branch February 4, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐️ Enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Configure include and exclude patterns for logged events
2 participants