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 TypeMethodDescriptionvoidrecordDataReceivedTime(String uri, String method, Duration time) Records the time that is spent in consuming incoming data.abstract voidrecordDataReceivedTime(ContextView contextView, 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.abstract voidrecordDataSentTime(ContextView contextView, 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.abstract voidrecordResponseTime(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, recordDataSentMethods 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, recordTlsHandshakeTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, recordDataSentMethods 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 currentContextViewassociated 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 currentContextViewassociated 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 currentContextViewassociated 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:HttpServerMetricsRecorderRecords the time that is spent in consuming incoming data.- Specified by:
recordDataReceivedTimein 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:HttpServerMetricsRecorderRecords the time that is spent in sending outgoing data.- Specified by:
recordDataSentTimein 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:HttpServerMetricsRecorderRecords the total time for the request/response.- Specified by:
recordResponseTimein interfaceHttpServerMetricsRecorder- Parameters:
uri- the requested URImethod- the HTTP methodstatus- the HTTP statustime- the total time in nanoseconds for the request/response
-