Package reactor.netty.http.server
Class ContextAwareHttpServerMetricsRecorder
java.lang.Object
reactor.netty.channel.ContextAwareChannelMetricsRecorder
reactor.netty.http.ContextAwareHttpMetricsRecorder
reactor.netty.http.server.ContextAwareHttpServerMetricsRecorder
- All Implemented Interfaces:
ChannelMetricsRecorder
,HttpMetricsRecorder
,HttpServerMetricsRecorder
public abstract class ContextAwareHttpServerMetricsRecorder
extends ContextAwareHttpMetricsRecorder
implements HttpServerMetricsRecorder
ContextView
aware class for collecting metrics on HTTP server level.- Since:
- 1.0.8
- Author:
- Violeta Georgieva
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
recordDataReceivedTime
(String uri, String method, Duration time) Records the time that is spent in consuming incoming data.abstract void
recordDataReceivedTime
(ContextView contextView, 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.abstract void
recordDataSentTime
(ContextView contextView, 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.abstract void
recordResponseTime
(ContextView contextView, String uri, String method, String status, Duration time) Records the total time for the request/response.Methods inherited from class reactor.netty.http.ContextAwareHttpMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent
Methods inherited from class reactor.netty.channel.ContextAwareChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordDataSent, recordDataSent, recordTlsHandshakeTime, recordTlsHandshakeTime, recordTlsHandshakeTime, recordTlsHandshakeTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
Methods inherited from interface reactor.netty.http.server.HttpServerMetricsRecorder
recordServerConnectionActive, recordServerConnectionInactive, recordStreamClosed, recordStreamOpened
-
Constructor Details
-
ContextAwareHttpServerMetricsRecorder
public ContextAwareHttpServerMetricsRecorder()
-
-
Method Details
-
recordDataReceivedTime
public abstract void recordDataReceivedTime(ContextView contextView, String uri, String method, Duration time) Records the time that is spent in consuming incoming data.- Parameters:
contextView
- The currentContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodtime
- The time in nanoseconds that is spent in consuming incoming data
-
recordDataSentTime
public abstract void recordDataSentTime(ContextView contextView, String uri, String method, String status, Duration time) Records the time that is spent in sending outgoing data.- Parameters:
contextView
- The currentContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The time in nanoseconds that is spent in sending outgoing data
-
recordResponseTime
public abstract void recordResponseTime(ContextView contextView, String uri, String method, String status, Duration time) Records the total time for the request/response.- Parameters:
contextView
- The currentContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The total time in nanoseconds for the request/response
-
recordDataReceivedTime
Description copied from interface:HttpServerMetricsRecorder
Records the time that is spent in consuming incoming data.- Specified by:
recordDataReceivedTime
in interfaceHttpServerMetricsRecorder
- Parameters:
uri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in consuming incoming data
-
recordDataSentTime
Description copied from interface:HttpServerMetricsRecorder
Records the time that is spent in sending outgoing data.- Specified by:
recordDataSentTime
in interfaceHttpServerMetricsRecorder
- Parameters:
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in sending outgoing data
-
recordResponseTime
Description copied from interface:HttpServerMetricsRecorder
Records the total time for the request/response.- Specified by:
recordResponseTime
in interfaceHttpServerMetricsRecorder
- Parameters:
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response
-