Skip to content

Implement PollerMetrics for EpollSystem #4335

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

Conversation

antoniojimeneznieto
Copy link
Contributor

Linked to: #4314

This PR implements metrics tracking for read and write operations in the Poller class for the EpollSystem. It provides basic metrics reporting such as total submitted, succeeded, errored, and canceled operations and outstanding operations count.

Co-authored-by: Maksym Ochenashko <maxochenashko@gmail.com>
@djspiewak
Copy link
Member

IMO this (and #4336) are very cool and look good and I don't see anything standing in the way of their merge. @armanbilge thoughts? @antoniojimeneznieto do you feel these are in a state where they can be non-WIP PRs?

private var totalWriteCanceled = 0L
private var writeOutstanding = 0

private[this] val pollerMetrics: PollerMetrics = new PollerMetrics {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of an internal object, we can have Poller extends PollerMetrics and implement these methods directly :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That makes sense! Thank you arman :)

@antoniojimeneznieto
Copy link
Contributor Author

IMO this (and #4336) are very cool and look good and I don't see anything standing in the way of their merge. @armanbilge thoughts? @antoniojimeneznieto do you feel these are in a state where they can be non-WIP PRs?

Yes, thank you! I believe they're ready and no longer WIP

@antoniojimeneznieto antoniojimeneznieto marked this pull request as ready for review July 25, 2025 09:49
@djspiewak djspiewak merged commit 5af0bdf into typelevel:series/3.6.x Jul 26, 2025
34 of 36 checks passed
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