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 TypeMethodDescriptionvoid
recordDataReceivedTime
(String uri, String method, Duration time) Records the time that is spent in consuming incoming data.void
recordDataSentTime
(String uri, String method, String status, Duration time) Records the time that is spent in sending outgoing data.void
recordResponseTime
(String uri, String method, String status, Duration time) Records the total time for the request/response.default void
recordServerConnectionActive
(SocketAddress localAddress) Record a new active in-use http connection.default void
recordServerConnectionInactive
(SocketAddress localAddress) Record an inactive http connection.default void
recordStreamClosed
(SocketAddress localAddress) Record a closed HTTP/2 stream.default void
recordStreamOpened
(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, recordTlsHandshakeTime
Methods 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
-