reactor / reactor-netty

TCP/HTTP/UDP/QUIC client/server with Reactor over Netty

Home Page:https://projectreactor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metrics Request - Request Pending Wait Time

jonathannaguin opened this issue · comments

One of the metrics provided is reactor.netty.connection.provider.pending.connections which gauges the number of requests that are waiting for a connection however what we are lacking is a way to know how much time they are waiting on the queue.

Motivation

The time a request is waiting for a connection is one of the metrics that could indicate clearly a problem with load or networking.

Desired solution

As part of the existing metrics, we would like a new metric, something like reactor.netty.connection.provider.pending.connection.time, of type Timer that will indicate the time a request spent on the queue waiting for a connection.

Considered alternatives

We have some logging around the HTTP client request however having the metric inside Reactor Netty will be the the closes to the code that really performs the call.

@jonathannaguin I'm gonna work on this one.