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
Report consumer sender workload. #1100
Conversation
.map(HttpDestination.class::cast) | ||
.map(HttpDestination::getHttpExchanges) | ||
.map(Queue::size) | ||
.mapToInt(i -> i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be changed to mapToInt(Function::identity)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapToInt
takes an argument of type ToIntFunction
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright :)
hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/HermesConsumers.java
Outdated
Show resolved
Hide resolved
* Create independent DI factory for each http client. * Add wrapper Http2ClientHolder for optional http-2 jetty client. * Add HttpClientsWorkloadReporter * Report metrics for client http 1 and http 2
* Create independent DI factory for each http client. * Add wrapper Http2ClientHolder for optional http-2 jetty client. * Add HttpClientsWorkloadReporter * Report metrics for client http 1 and http 2
Reporting consumer sender workload to graphite.