Top Description Methods
reactor.netty5.http.client

public Interface HttpClientMetricsRecorder

extends HttpMetricsRecorder
Known Direct Implementers
reactor.netty5.http.client.MicrometerHttpClientMetricsRecorder, reactor.netty5.http.client.ContextAwareHttpClientMetricsRecorder
Imports
reactor.netty5.http.HttpMetricsRecorder, java.net.SocketAddress, java.time.Duration

Interface for collecting metrics on HTTP client level
Author
Violeta Georgieva

Method Summary

Modifier and TypeMethod and Description
public void
recordDataReceivedTime(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
,
String
the HTTP method
method
,
String
the HTTP status
status
,
Duration
the time in nanoseconds that is spent in consuming incoming data
time
)

Records the time that is spent in consuming incoming data

public void
recordDataSentTime(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
,
String
the HTTP method
method
,
Duration
the time in nanoseconds that is spent in sending outgoing data
time
)

Records the time that is spent in sending outgoing data

public void
recordResponseTime(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
,
String
the HTTP method
method
,
String
the HTTP status
status
,
Duration
the total time in nanoseconds for the request/response
time
)

Records the total time for the request/response

Inherited from reactor.netty5.http.HttpMetricsRecorder:
incrementErrorsCountrecordDataReceivedrecordDataSent

Method Detail

recordDataReceivedTimeback to summary
public void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)

Records the time that is spent in consuming incoming data

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

method:String

the HTTP method

status:String

the HTTP status

time:Duration

the time in nanoseconds that is spent in consuming incoming data

recordDataSentTimeback to summary
public void recordDataSentTime(SocketAddress remoteAddress, String uri, String method, Duration time)

Records the time that is spent in sending outgoing data

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

method:String

the HTTP method

time:Duration

the time in nanoseconds that is spent in sending outgoing data

recordResponseTimeback to summary
public void recordResponseTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)

Records the total time for the request/response

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

method:String

the HTTP method

status:String

the HTTP status

time:Duration

the total time in nanoseconds for the request/response