Skip to content

Improve metric plugin loading #16

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

Merged
merged 4 commits into from
Jun 26, 2025
Merged

Conversation

wenxi-zeng
Copy link
Contributor

  • make sure metric plugin is loaded as long as destination filters plugin is loaded
  • update the dependencies to the latest that have critical fix to filters
    • settings now propagate to filters regardless of network status
    • update is called now every time the app is brought to foreground with fresh settings
    • filters of dropping event now no longer logs null cast exception
  • add cache to avoid filters being removed and added repeatedly when update is called

Comment on lines 78 to 80
// if engine recreated or rules are different we need to remove and recreated filters
// otherwise, we can skip
if (!engineRecreated && !cacheInvalidated) return
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is confusing because it's talking in the affirmative but the variables are negated. Maybe something like:

// If the engine has NOT been recreated and the cache/rules have not been invalidated then we can exit early.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@wenxi-zeng wenxi-zeng merged commit 40b4a6b into main Jun 26, 2025
4 checks passed
@wenxi-zeng wenxi-zeng deleted the improve-metric-plugin-loading branch June 26, 2025 19:11
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