public interface HttpClientMetricsRecorder extends HttpMetricsRecorder
Modifier and Type | Method and Description |
---|---|
default void |
incrementErrorsCount(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri)
Increments the number of the errors that have occurred.
|
default void |
recordDataReceived(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri,
long bytes)
Records the amount of the data that is received, in bytes.
|
default void |
recordDataReceivedTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri,
String method,
String status,
Duration time)
Records the time that is spent in consuming incoming data.
|
void |
recordDataReceivedTime(SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the time that is spent in consuming incoming data.
|
default void |
recordDataSent(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri,
long bytes)
Records the amount of the data that is sent, in bytes.
|
default void |
recordDataSentTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri,
String method,
Duration time)
Records the time that is spent in sending outgoing data.
|
void |
recordDataSentTime(SocketAddress remoteAddress,
String uri,
String method,
Duration time)
Records the time that is spent in sending outgoing data.
|
default void |
recordResponseTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
String uri,
String method,
String status,
Duration time)
Records the total time for the request/response.
|
void |
recordResponseTime(SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the total time for the request/response.
|
incrementErrorsCount, recordDataReceived, recordDataSent
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, 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 datadefault void recordDataReceivedTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- 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 datadefault void recordDataSentTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, Duration time)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- 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/responsedefault void recordResponseTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/responsedefault void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URIbytes
- The amount of the data that is received, in bytesdefault void recordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URIbytes
- The amount of the data that is sent, in bytesdefault void incrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri)
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URI