You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing an HTTP service I noticed the in-use client enpoint metric kept increasing and would not return to a zero value when traffic was stopped. Other metrics showed request timeouts were occuring. Looking at the EndpointMetric implementation I saw that the in-use counter is incremented instead of being dercemented. This results in the in-use counter getting incremented twice, one increment when a request is sent, and another inrement when a timeout occurs.
Questions
Why is the in-use counter incremented when a request reset happens?
vertx-dropwizard-metrics/src/main/java/io/vertx/ext/dropwizard/impl/EndpointMetrics.java
Line 45 in 392440f
Version
4.5.4
Context
While testing an HTTP service I noticed the in-use client enpoint metric kept increasing and would not return to a zero value when traffic was stopped. Other metrics showed request timeouts were occuring. Looking at the EndpointMetric implementation I saw that the in-use counter is incremented instead of being dercemented. This results in the in-use counter getting incremented twice, one increment when a request is sent, and another inrement when a timeout occurs.
Do you have a reproducer?
https://github.com/dlfcn/in-use-client-endpoint-metric-test/blob/master/src/test/java/InUseClientEndpointMetricTest.java
Steps to reproduce
Extra
None.
The text was updated successfully, but these errors were encountered: