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
ConstructorsModifierConstructorDescriptionprotectedMicrometerHttpMetricsRecorder(String name, String protocol) protectedMicrometerHttpMetricsRecorder(String name, String protocol, boolean onServer) -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementErrorsCount(SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.voidrecordDataReceived(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.voidrecordDataSent(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, recordTlsHandshakeTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:HttpMetricsRecorderRecords the amount of the data that is received, in bytes.- Specified by:
recordDataReceivedin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URIbytes- The amount of the data that is received, in bytes
-
recordDataSent
Description copied from interface:HttpMetricsRecorderRecords the amount of the data that is sent, in bytes.- Specified by:
recordDataSentin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URIbytes- The amount of the data that is sent, in bytes
-
incrementErrorsCount
Description copied from interface:HttpMetricsRecorderIncrements the number of the errors that are occurred.- Specified by:
incrementErrorsCountin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URI
-