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

Removing metrics service implementation #133

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Removing metrics service implementation #133

merged 3 commits into from
Aug 27, 2024

Conversation

jzonthemtn
Copy link
Member

@jzonthemtn jzonthemtn commented Aug 25, 2024

Removing metrics service implementation for #122.

@jzonthemtn jzonthemtn added this to the 2.7.0 milestone Aug 25, 2024
Copy link
Collaborator

@robfromboulder robfromboulder left a comment

Choose a reason for hiding this comment

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

Looks good :-)

@robfromboulder
Copy link
Collaborator

The functionality here looks good -- but I think I'm seeing a significant drop in performance with these changes. I ran out of time tonight to gather more details but wanted to give a head's up that this might need more testing before merging.

@jzonthemtn
Copy link
Member Author

Interesting. It's probably the LoggingMetricsService that uses log4j to output those metrics. I will take a look.

@jzonthemtn
Copy link
Member Author

Changed to NoOpMetricsService. The other one will go into Philter. Performance is more important than metrics, by default.

@robfromboulder
Copy link
Collaborator

Sounds good!

BTW I think the issue was logFilterTime() was calling LOGGER.debug(...) where the debug string is expensive to calculate. Changing this to if (LOGGER.isDebugEnabled()) LOGGER.debug(...) seemed to resolve the issue.

Agree that NoOpMetricsService is a better default -- but you may wanna add that isDebugEnabled check on the Philter side?

@robfromboulder
Copy link
Collaborator

Just tried a few performance tests and it's looking good now, many thanks!

@jzonthemtn jzonthemtn merged commit 1fe1545 into main Aug 27, 2024
3 checks passed
@jzonthemtn jzonthemtn deleted the 122-move-metrics branch August 27, 2024 19:00
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