Package reactor.netty.http.client
Interface HttpClientMetricsRecorder
- All Superinterfaces:
ChannelMetricsRecorder
,HttpMetricsRecorder
- All Known Implementing Classes:
ContextAwareHttpClientMetricsRecorder
Interface for collecting metrics on HTTP client level.
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.void
recordDataReceivedTime
(SocketAddress remoteAddress, String uri, String method, String status, Duration time) Records the time that is spent in consuming incoming data.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.default void
recordDataSent
(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.void
recordDataSentTime
(SocketAddress remoteAddress, String uri, String method, Duration time) Records the time that is spent in sending outgoing data.default void
recordDataSentTime
(SocketAddress remoteAddress, SocketAddress proxyAddress, 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.default void
recordResponseTime
(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time) Records the total time for the request/response.Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTime
Methods inherited from interface reactor.netty.http.HttpMetricsRecorder
incrementErrorsCount, recordDataReceived, recordDataSent
-
Method Details
-
recordDataReceivedTime
void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time) Records the time that is spent in consuming incoming data.- Parameters:
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in consuming incoming data
-
recordDataReceivedTime
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.- Parameters:
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 data- Since:
- 1.1.17
-
recordDataSentTime
Records the time that is spent in sending outgoing data.- Parameters:
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in sending outgoing data
-
recordDataSentTime
default void recordDataSentTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, Duration time) Records the time that is spent in sending outgoing data.- Parameters:
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in sending outgoing data- Since:
- 1.1.17
-
recordResponseTime
void recordResponseTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time) Records the total time for the request/response.- Parameters:
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response
-
recordResponseTime
default void recordResponseTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time) Records the total time for the request/response.- Parameters:
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response- Since:
- 1.1.17
-
recordDataReceived
default void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.- Parameters:
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URIbytes
- The amount of the data that is received, in bytes- Since:
- 1.1.17
-
recordDataSent
default void recordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.- Parameters:
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URIbytes
- The amount of the data that is sent, in bytes- Since:
- 1.1.17
-
incrementErrorsCount
default void incrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri) Increments the number of the errors that have occurred.- Parameters:
remoteAddress
- The remote peerproxyAddress
- the proxy addressuri
- the requested URI- Since:
- 1.1.17
-