public interface HttpServerMetricsRecorder extends HttpMetricsRecorder
| Modifier and Type | Method and Description |
|---|---|
void |
recordDataReceivedTime(String uri,
String method,
Duration time)
Records the time that is spent in consuming incoming data
|
void |
recordDataSentTime(String uri,
String method,
String status,
Duration time)
Records the time that is spent in sending outgoing data
|
void |
recordResponseTime(String uri,
String method,
String status,
Duration time)
Records the total time for the request/response
|
default void |
recordServerConnectionActive(SocketAddress localAddress)
Record a new active in-use http connection
|
default void |
recordServerConnectionInactive(SocketAddress localAddress)
Record an inactive http connection
|
incrementErrorsCount, recordDataReceived, recordDataSentincrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTimevoid recordDataReceivedTime(String uri, String method, Duration time)
uri - the requested URImethod - the HTTP methodtime - the time in nanoseconds that is spent in consuming incoming datavoid recordDataSentTime(String uri, String method, String status, Duration time)
uri - the requested URImethod - the HTTP methodstatus - the HTTP statustime - the time in nanoseconds that is spent in sending outgoing datavoid recordResponseTime(String uri, String method, String status, Duration time)
uri - the requested URImethod - the HTTP methodstatus - the HTTP statustime - the total time in nanoseconds for the request/responsedefault void recordServerConnectionActive(SocketAddress localAddress)
localAddress - the local server addressdefault void recordServerConnectionInactive(SocketAddress localAddress)
localAddress - the local server address