public interface HttpClientMetricsRecorder extends HttpMetricsRecorder
Modifier and Type | Method and Description |
---|---|
void |
recordDataReceivedTime(SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the time that is spent in consuming incoming data
|
void |
recordDataSentTime(SocketAddress remoteAddress,
String uri,
String method,
Duration time)
Records the time that is spent in sending outgoing data
|
void |
recordResponseTime(SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the total time for the request/response
|
incrementErrorsCount, recordDataReceived, recordDataSent
incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime
void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in consuming incoming datavoid recordDataSentTime(SocketAddress remoteAddress, String uri, String method, Duration time)
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in sending outgoing datavoid recordResponseTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response