Package reactor.netty.http
Interface HttpMetricsRecorder
- All Superinterfaces:
ChannelMetricsRecorder
- All Known Subinterfaces:
HttpClientMetricsRecorder
,HttpServerMetricsRecorder
- All Known Implementing Classes:
ContextAwareHttpClientMetricsRecorder
,ContextAwareHttpMetricsRecorder
,ContextAwareHttpServerMetricsRecorder
,MicrometerHttpMetricsRecorder
Interface for recording metrics for HTTP protocol.
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementErrorsCount
(SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.void
recordDataReceived
(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.void
recordDataSent
(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTime
-
Method Details
-
recordDataReceived
Records the amount of the data that is received, in bytes.- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is received, in bytes
-
recordDataSent
Records the amount of the data that is sent, in bytes.- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is sent, in bytes
-
incrementErrorsCount
Increments the number of the errors that are occurred.- Parameters:
remoteAddress
- The remote peeruri
- the requested URI
-