Top Fields Constructors Methods
reactor.netty5.http.client

pack-priv final Class MicrometerHttpClientMetricsRecorder

extends MicrometerHttpMetricsRecorder
implements HttpClientMetricsRecorder
Class Inheritance
All Implemented Interfaces
reactor.netty5.http.client.HttpClientMetricsRecorder, reactor.netty5.http.HttpMetricsRecorder, reactor.netty5.channel.ChannelMetricsRecorder
Imports
io.micrometer.core.instrument.Timer, reactor.netty5.Metrics, reactor.netty5.channel.MeterKey, reactor.netty5.http.MicrometerHttpMetricsRecorder, reactor.netty5.internal.util.MapUtils, reactor.util.annotation.Nullable, java.net.SocketAddress, java.time.Duration

Author
Violeta Georgieva
Since
0.9

Field Summary

Modifier and TypeField and Description
pack-priv static final MicrometerHttpClientMetricsRecorder
Inherited from reactor.netty5.http.MicrometerHttpMetricsRecorder:
dataReceivedTimeCachedataSentTimeCacheresponseTimeCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv final io.micrometer.core.instrument.Timer
getResponseTimeTimer(String name, String address, String uri, String method, String status)

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
)

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataReceivedTime.

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
)

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataSentTime.

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
)

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordResponseTime.

Records the total time for the request/response
Inherited from reactor.netty5.http.MicrometerHttpMetricsRecorder:
incrementErrorsCountrecordDataReceivedrecordDataSent

Field Detail

INSTANCEback to summary
pack-priv static final MicrometerHttpClientMetricsRecorder INSTANCE

Constructor Detail

MicrometerHttpClientMetricsRecorderback to summary
private MicrometerHttpClientMetricsRecorder()

Method Detail

getResponseTimeTimerback to summary
pack-priv final io.micrometer.core.instrument.Timer getResponseTimeTimer(String name, String address, String uri, String method, String status)
Annotations
@Nullable
recordDataReceivedTimeback to summary
public void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataReceivedTime.

Doc from reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataReceivedTime.

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

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

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataSentTime.

Doc from reactor.netty5.http.client.HttpClientMetricsRecorder.recordDataSentTime.

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

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

Implements reactor.netty5.http.client.HttpClientMetricsRecorder.recordResponseTime.

Doc from reactor.netty5.http.client.HttpClientMetricsRecorder.recordResponseTime.

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

Annotations
@Override