public abstract class ContextAwareHttpClientMetricsRecorder extends ContextAwareHttpMetricsRecorder implements HttpClientMetricsRecorder
ContextView
aware class for collecting metrics on HTTP client levelConstructor and Description |
---|
ContextAwareHttpClientMetricsRecorder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
recordDataReceivedTime(ContextView contextView,
SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the time that is spent in consuming incoming data
|
void |
recordDataReceivedTime(SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the time that is spent in consuming incoming data
|
abstract void |
recordDataSentTime(ContextView contextView,
SocketAddress remoteAddress,
String uri,
String method,
Duration time)
Records the time that is spent in sending outgoing data
|
void |
recordDataSentTime(SocketAddress remoteAddress,
String uri,
String method,
Duration time)
Records the time that is spent in sending outgoing data
|
abstract void |
recordResponseTime(ContextView contextView,
SocketAddress remoteAddress,
String uri,
String method,
String status,
Duration time)
Records the total time for the request/response
|
void |
recordResponseTime(SocketAddress remoteAddress,
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
incrementErrorsCount, recordDataReceived, recordDataSent
incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime
public ContextAwareHttpClientMetricsRecorder()
public abstract void recordDataReceivedTime(ContextView contextView, SocketAddress remoteAddress, String uri, String method, String status, Duration time)
contextView
- The current ContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The time in nanoseconds that is spent in consuming incoming datapublic abstract void recordDataSentTime(ContextView contextView, SocketAddress remoteAddress, String uri, String method, Duration time)
contextView
- The current ContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URImethod
- The HTTP methodtime
- The time in nanoseconds that is spent in sending outgoing datapublic abstract void recordResponseTime(ContextView contextView, SocketAddress remoteAddress, String uri, String method, String status, Duration time)
contextView
- The current ContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URImethod
- The HTTP methodstatus
- The HTTP statustime
- The total time in nanoseconds for the request/responsepublic void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
HttpClientMetricsRecorder
recordDataReceivedTime
in interface HttpClientMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in consuming incoming datapublic void recordDataSentTime(SocketAddress remoteAddress, String uri, String method, Duration time)
HttpClientMetricsRecorder
recordDataSentTime
in interface HttpClientMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in sending outgoing datapublic void recordResponseTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
HttpClientMetricsRecorder
recordResponseTime
in interface HttpClientMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response