Package reactor.netty.http
Class MicrometerHttpMetricsRecorder
java.lang.Object
reactor.netty.channel.MicrometerChannelMetricsRecorder
reactor.netty.http.MicrometerHttpMetricsRecorder
- All Implemented Interfaces:
ChannelMetricsRecorder
,HttpMetricsRecorder
public class MicrometerHttpMetricsRecorder
extends MicrometerChannelMetricsRecorder
implements HttpMetricsRecorder
An
HttpMetricsRecorder
implementation for integration with Micrometer.- Since:
- 0.9
- Author:
- Violeta Georgieva
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<MeterKey,
io.micrometer.core.instrument.Timer> protected final ConcurrentMap<MeterKey,
io.micrometer.core.instrument.Timer> protected final ConcurrentMap<MeterKey,
io.micrometer.core.instrument.Timer> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MicrometerHttpMetricsRecorder
(String name, String protocol) protected
MicrometerHttpMetricsRecorder
(String name, String protocol, boolean onServer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class reactor.netty.channel.MicrometerChannelMetricsRecorder
filter, getResolveAddressTimer, getTlsHandshakeTimer, getTlsHandshakeTimer, incrementErrorsCount, incrementErrorsCount, name, protocol, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTime
-
Field Details
-
dataReceivedTimeCache
-
dataSentTimeCache
-
responseTimeCache
-
-
Constructor Details
-
MicrometerHttpMetricsRecorder
-
MicrometerHttpMetricsRecorder
-
-
Method Details
-
recordDataReceived
Description copied from interface:HttpMetricsRecorder
Records the amount of the data that is received, in bytes.- Specified by:
recordDataReceived
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is received, in bytes
-
recordDataSent
Description copied from interface:HttpMetricsRecorder
Records the amount of the data that is sent, in bytes.- Specified by:
recordDataSent
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is sent, in bytes
-
incrementErrorsCount
Description copied from interface:HttpMetricsRecorder
Increments the number of the errors that are occurred.- Specified by:
incrementErrorsCount
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URI
-