public class MicrometerHttpMetricsRecorder extends MicrometerChannelMetricsRecorder implements HttpMetricsRecorder
Modifier and Type | Field and Description |
---|---|
protected io.micrometer.core.instrument.Timer.Builder |
dataReceivedTimeBuilder |
protected io.micrometer.core.instrument.Timer.Builder |
dataSentTimeBuilder |
protected io.micrometer.core.instrument.Timer.Builder |
responseTimeBuilder |
name, registry, remoteAddress
Modifier | Constructor and Description |
---|---|
protected |
MicrometerHttpMetricsRecorder(String name,
String remoteAddress,
String protocol) |
Modifier and Type | Method and Description |
---|---|
void |
incrementErrorsCount(SocketAddress remoteAddress,
String uri)
Increments the number of the errors that are occurred
|
void |
recordDataReceived(SocketAddress remoteAddress,
String uri,
long bytes)
Records the amount of the data that is received, in bytes
|
void |
recordDataSent(SocketAddress remoteAddress,
String uri,
long bytes)
Records the amount of the data that is sent, in bytes
|
incrementErrorsCount, name, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordTlsHandshakeTime, registry, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordTlsHandshakeTime
protected final io.micrometer.core.instrument.Timer.Builder dataReceivedTimeBuilder
protected final io.micrometer.core.instrument.Timer.Builder dataSentTimeBuilder
protected final io.micrometer.core.instrument.Timer.Builder responseTimeBuilder
public void recordDataReceived(SocketAddress remoteAddress, String uri, long bytes)
HttpMetricsRecorder
recordDataReceived
in interface HttpMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is received, in bytespublic void recordDataSent(SocketAddress remoteAddress, String uri, long bytes)
HttpMetricsRecorder
recordDataSent
in interface HttpMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is sent, in bytespublic void incrementErrorsCount(SocketAddress remoteAddress, String uri)
HttpMetricsRecorder
incrementErrorsCount
in interface HttpMetricsRecorder
remoteAddress
- The remote peeruri
- the requested URI