Package reactor.netty.channel
Interface ChannelMetricsRecorder
- All Known Subinterfaces:
HttpClientMetricsRecorder,HttpMetricsRecorder,HttpServerMetricsRecorder
- All Known Implementing Classes:
ContextAwareChannelMetricsRecorder,ContextAwareHttpClientMetricsRecorder,ContextAwareHttpMetricsRecorder,ContextAwareHttpServerMetricsRecorder,MicrometerChannelMetricsRecorder,MicrometerHttpMetricsRecorder
public interface ChannelMetricsRecorder
Interface for recording metrics on protocol level.
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionvoidincrementErrorsCount(SocketAddress remoteAddress) Increments the number of the errors that have occurred.default voidincrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress) Increments the number of the errors that have occurred.default voidrecordConnectTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status) Records the time that is spent for connecting to the remote address.voidrecordConnectTime(SocketAddress remoteAddress, Duration time, String status) Records the time that is spent for connecting to the remote address.voidrecordDataReceived(SocketAddress remoteAddress, long bytes) Records the amount of the data that is received, in bytes.default voidrecordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes) Records the amount of the data that is received, in bytes.voidrecordDataSent(SocketAddress remoteAddress, long bytes) Records the amount of the data that is sent, in bytes.default voidrecordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes) Records the amount of the data that is sent, in bytes.voidrecordResolveAddressTime(SocketAddress remoteAddress, Duration time, String status) Records the time that is spent for resolving the remote address.default voidrecordServerConnectionClosed(SocketAddress localAddress) Records a just disconnected server connection.default voidrecordServerConnectionOpened(SocketAddress localAddress) Records a just accepted server connection.default voidrecordTlsHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status) Records the time that is spent for TLS handshake.voidrecordTlsHandshakeTime(SocketAddress remoteAddress, Duration time, String status) Records the time that is spent for TLS handshake.
-
Method Details
-
recordDataReceived
Records the amount of the data that is received, in bytes.- Parameters:
remoteAddress- The remote peerbytes- The amount of the data that is received, in bytes
-
recordDataReceived
default void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes) Records the amount of the data that is received, in bytes.- Parameters:
remoteAddress- The remote peerproxyAddress- The proxy addressbytes- The amount of the data that is received, in bytes- Since:
- 1.1.17
-
recordDataSent
Records the amount of the data that is sent, in bytes.- Parameters:
remoteAddress- The remote peerbytes- The amount of the data that is sent, in bytes
-
recordDataSent
Records the amount of the data that is sent, in bytes.- Parameters:
remoteAddress- The remote peerproxyAddress- The proxy addressbytes- The amount of the data that is sent, in bytes- Since:
- 1.1.17
-
incrementErrorsCount
Increments the number of the errors that have occurred.- Parameters:
remoteAddress- The remote peer
-
incrementErrorsCount
Increments the number of the errors that have occurred.- Parameters:
remoteAddress- The remote peerproxyAddress- The proxy address- Since:
- 1.1.17
-
recordTlsHandshakeTime
Records the time that is spent for TLS handshake.- Parameters:
remoteAddress- The remote peertime- the time in nanoseconds that is spent for TLS handshakestatus- the status of the operation
-
recordTlsHandshakeTime
default void recordTlsHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status) Records the time that is spent for TLS handshake.- Parameters:
remoteAddress- The remote peerproxyAddress- The proxy addresstime- the time in nanoseconds that is spent for TLS handshakestatus- the status of the operation- Since:
- 1.1.17
-
recordConnectTime
Records the time that is spent for connecting to the remote address. Relevant only when on the client- Parameters:
remoteAddress- The remote peertime- the time in nanoseconds that is spent for connecting to the remote addressstatus- the status of the operation
-
recordConnectTime
default void recordConnectTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status) Records the time that is spent for connecting to the remote address. Relevant only when on the client- Parameters:
remoteAddress- The remote peerproxyAddress- The proxy addresstime- the time in nanoseconds that is spent for connecting to the remote addressstatus- the status of the operation- Since:
- 1.1.17
-
recordResolveAddressTime
Records the time that is spent for resolving the remote address. Relevant only when on the client.- Parameters:
remoteAddress- The remote peertime- the time in nanoseconds that is spent for resolving to the remote addressstatus- the status of the operation
-
recordServerConnectionOpened
Records a just accepted server connection.- Parameters:
localAddress- the server local address- Since:
- 1.0.15
-
recordServerConnectionClosed
Records a just disconnected server connection.- Parameters:
localAddress- the server local address- Since:
- 1.0.15
-