public class MicrometerHttpMetricsRecorder extends MicrometerChannelMetricsRecorder implements HttpMetricsRecorder
HttpMetricsRecorder implementation for integration with Micrometer.| Modifier and Type | Field and Description | 
|---|---|
protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | 
dataReceivedTimeCache  | 
protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | 
dataSentTimeCache  | 
protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | 
responseTimeCache  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
MicrometerHttpMetricsRecorder(String name,
                             String protocol)  | 
protected  | 
MicrometerHttpMetricsRecorder(String name,
                             String protocol,
                             boolean onServer)  | 
| 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. 
 | 
filter, getResolveAddressTimer, getTlsHandshakeTimer, getTlsHandshakeTimer, incrementErrorsCount, incrementErrorsCount, name, protocol, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitincrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTimeprotected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> dataReceivedTimeCache
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> dataSentTimeCache
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> responseTimeCache
public void recordDataReceived(SocketAddress remoteAddress, String uri, long bytes)
HttpMetricsRecorderrecordDataReceived in interface HttpMetricsRecorderremoteAddress - The remote peeruri - the requested URIbytes - The amount of the data that is received, in bytespublic void recordDataSent(SocketAddress remoteAddress, String uri, long bytes)
HttpMetricsRecorderrecordDataSent in interface HttpMetricsRecorderremoteAddress - The remote peeruri - the requested URIbytes - The amount of the data that is sent, in bytespublic void incrementErrorsCount(SocketAddress remoteAddress, String uri)
HttpMetricsRecorderincrementErrorsCount in interface HttpMetricsRecorderremoteAddress - The remote peeruri - the requested URI