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

Provide possibility to execute metrics update in the same thread #62

Open
rc-mairovichaa opened this issue Sep 23, 2024 · 0 comments
Open
Labels

Comments

@rc-mairovichaa
Copy link
Collaborator

rc-mairovichaa commented Sep 23, 2024

Now ScheduledExecutorService is in use and there is no default implementation, which allows to execute metrics updates in the same thread they took place. Meantime, it seems to be bad that generation of slices, event handling and expiration will be handled in the same thread.
It's suggested to introduce such implementation (or change MetricRegistry constructors to support same thread execution) considering the point about still handling other events in a different thread.

Such feature could be useful for

  • testing
  • use cases when context switching should avoided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant