public abstract class ContextAwareHttpServerMetricsRecorder extends ContextAwareHttpMetricsRecorder implements HttpServerMetricsRecorder
ContextView
aware class for collecting metrics on HTTP server levelConstructor and Description |
---|
ContextAwareHttpServerMetricsRecorder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
recordDataReceivedTime(ContextView contextView,
String uri,
String method,
Duration time)
Records the time that is spent in consuming incoming data
|
void |
recordDataReceivedTime(String uri,
String method,
Duration time)
Records the time that is spent in consuming incoming 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 |
recordDataSentTime(String uri,
String method,
String status,
Duration time)
Records the time that is spent in sending outgoing data
|
abstract void |
recordResponseTime(ContextView contextView,
String uri,
String method,
String status,
Duration time)
Records the total time for the request/response
|
void |
recordResponseTime(String uri,
String method,
String status,
Duration time)
Records the total time for the request/response
|
incrementErrorsCount, incrementErrorsCount, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordTlsHandshakeTime, recordTlsHandshakeTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
recordServerConnectionActive, recordServerConnectionInactive, recordStreamClosed, recordStreamOpened
incrementErrorsCount, recordDataReceived, recordDataSent
incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime
public ContextAwareHttpServerMetricsRecorder()
public abstract void recordDataReceivedTime(ContextView contextView, String uri, String method, Duration time)
contextView
- The current ContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodtime
- The time in nanoseconds that is spent in consuming incoming datapublic abstract void recordDataSentTime(ContextView contextView, String uri, String method, String status, Duration time)
contextView
- The current ContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The time in nanoseconds that is spent in sending outgoing datapublic abstract void recordResponseTime(ContextView contextView, String uri, String method, String status, Duration time)
contextView
- The current ContextView
associated with the Mono/Fluxuri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The total time in nanoseconds for the request/responsepublic void recordDataReceivedTime(String uri, String method, Duration time)
HttpServerMetricsRecorder
recordDataReceivedTime
in interface HttpServerMetricsRecorder
uri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in consuming incoming datapublic void recordDataSentTime(String uri, String method, String status, Duration time)
HttpServerMetricsRecorder
recordDataSentTime
in interface HttpServerMetricsRecorder
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in sending outgoing datapublic void recordResponseTime(String uri, String method, String status, Duration time)
HttpServerMetricsRecorder
recordResponseTime
in interface HttpServerMetricsRecorder
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response