Package reactor.netty.http.server
Interface HttpServerMetricsRecorder
- All Superinterfaces:
ChannelMetricsRecorder,HttpMetricsRecorder
- All Known Implementing Classes:
ContextAwareHttpServerMetricsRecorder
Interface for collecting metrics on HTTP server level.
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecordDataReceivedTime(String uri, String method, Duration time) Records the time that is spent in consuming incoming data.voidrecordDataSentTime(String uri, String method, String status, Duration time) Records the time that is spent in sending outgoing data.voidrecordResponseTime(String uri, String method, String status, Duration time) Records the total time for the request/response.default voidrecordServerConnectionActive(SocketAddress localAddress) Record a new active in-use http connection.default voidrecordServerConnectionInactive(SocketAddress localAddress) Record an inactive http connection.default voidrecordStreamClosed(SocketAddress localAddress) Record a closed HTTP/2 stream.default voidrecordStreamOpened(SocketAddress localAddress) Record an opened HTTP/2 stream.Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTimeMethods inherited from interface reactor.netty.http.HttpMetricsRecorder
incrementErrorsCount, recordDataReceived, recordDataSent
-
Method Details
-
recordDataReceivedTime
Records the time that is spent in consuming incoming data.- Parameters:
uri- the requested URImethod- the HTTP methodtime- the time in nanoseconds that is spent in consuming incoming data
-
recordDataSentTime
Records the time that is spent in sending outgoing data.- Parameters:
uri- the requested URImethod- the HTTP methodstatus- the HTTP statustime- the time in nanoseconds that is spent in sending outgoing data
-
recordResponseTime
Records the total time for the request/response.- Parameters:
uri- the requested URImethod- the HTTP methodstatus- the HTTP statustime- the total time in nanoseconds for the request/response
-
recordServerConnectionActive
Record a new active in-use http connection.- Parameters:
localAddress- the local server address- Since:
- 1.0.15
-
recordServerConnectionInactive
Record an inactive http connection.- Parameters:
localAddress- the local server address- Since:
- 1.0.15
-
recordStreamOpened
Record an opened HTTP/2 stream.- Parameters:
localAddress- the local server address- Since:
- 1.0.21
-
recordStreamClosed
Record a closed HTTP/2 stream.- Parameters:
localAddress- the local server address- Since:
- 1.0.21
-