public class MicrometerHttpMetricsRecorder extends MicrometerChannelMetricsRecorder implements HttpMetricsRecorder
HttpMetricsRecorder implementation for integration with Micrometer.| Modifier and Type | Field and Description | 
|---|---|
| protected io.micrometer.core.instrument.DistributionSummary.Builder | dataReceivedBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.DistributionSummary> | dataReceivedCache | 
| protected io.micrometer.core.instrument.Timer.Builder | dataReceivedTimeBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | dataReceivedTimeCache | 
| protected io.micrometer.core.instrument.DistributionSummary.Builder | dataSentBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.DistributionSummary> | dataSentCache | 
| protected io.micrometer.core.instrument.Timer.Builder | dataSentTimeBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | dataSentTimeCache | 
| protected io.micrometer.core.instrument.Counter.Builder | errorsBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Counter> | errorsCache | 
| protected io.micrometer.core.instrument.Timer.Builder | responseTimeBuilder | 
| protected ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> | responseTimeCache | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | MicrometerHttpMetricsRecorder(String name,
                             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 | 
filter, incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordTlsHandshakeTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitincrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordTlsHandshakeTimeprotected final io.micrometer.core.instrument.Timer.Builder dataReceivedTimeBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> dataReceivedTimeCache
protected final io.micrometer.core.instrument.Timer.Builder dataSentTimeBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> dataSentTimeCache
protected final io.micrometer.core.instrument.Timer.Builder responseTimeBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Timer> responseTimeCache
protected final io.micrometer.core.instrument.DistributionSummary.Builder dataReceivedBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.DistributionSummary> dataReceivedCache
protected final io.micrometer.core.instrument.DistributionSummary.Builder dataSentBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.DistributionSummary> dataSentCache
protected final io.micrometer.core.instrument.Counter.Builder errorsBuilder
protected final ConcurrentMap<MeterKey,io.micrometer.core.instrument.Counter> errorsCache
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