HttpServerMetricsRecorder for Reactor Netty built-in integration with Micrometer.
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| pack-priv static final MicrometerHttpServerMetricsRecorder | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv LongAdder | |
| pack-priv final io. | |
| pack-priv LongAdder | |
| public void | incrementErrorsCount(SocketAddress
The remote peer remoteAddress, String the requested URI uri)Overrides reactor. Implements reactor. |
| public void | incrementErrorsCount(SocketAddress
The remote peer remoteAddress)Overrides reactor. Implements reactor. |
| public void | recordConnectTime(SocketAddress
The remote peer remoteAddress, Duration the time in nanoseconds that is spent for connecting to the remote address time, String the status of the operation status)Overrides reactor. Implements reactor. |
| public void | recordDataReceived(SocketAddress
The remote peer remoteAddress, String the requested URI uri, long The amount of the data that is received, in bytes bytes)Overrides reactor. Implements reactor. |
| public void | recordDataReceived(SocketAddress
The remote peer remoteAddress, long The amount of the data that is received, in bytes bytes)Overrides reactor. Implements reactor. |
| public void | recordDataReceivedTime(String
the requested URI uri, String the HTTP method method, Duration the time in nanoseconds that is spent in consuming incoming data time)Implements reactor. |
| public void | recordDataSent(SocketAddress
The remote peer remoteAddress, String the requested URI uri, long The amount of the data that is sent, in bytes bytes)Overrides reactor. Implements reactor. |
| public void | recordDataSent(SocketAddress
The remote peer remoteAddress, long The amount of the data that is sent, in bytes bytes)Overrides reactor. Implements reactor. |
| public void | recordDataSentTime(String
the requested URI uri, String the HTTP method method, String the HTTP status status, Duration the time in nanoseconds that is spent in sending outgoing data time)Implements reactor. |
| public void | recordResolveAddressTime(SocketAddress
The remote peer remoteAddress, Duration the time in nanoseconds that is spent for resolving to the remote address time, String the status of the operation status)Overrides reactor. Implements reactor. |
| public void | recordResponseTime(String
the requested URI uri, String the HTTP method method, String the HTTP status status, Duration the total time in nanoseconds for the request/response time)Implements reactor. |
| public void | recordServerConnectionActive(SocketAddress
the local server address localAddress)Overrides default reactor. |
| public void | recordServerConnectionInactive(SocketAddress
the local server address localAddress)Overrides default reactor. |
| public void | recordStreamClosed(SocketAddress
the local server address localAddress)Overrides default reactor. |
| public void | recordStreamOpened(SocketAddress
the local server address localAddress)Overrides default reactor. |
| public void | recordTlsHandshakeTime(SocketAddress
The remote peer remoteAddress, Duration the time in nanoseconds that is spent for TLS handshake time, String the status of the operation status)Overrides reactor. Implements reactor. |
| activeConnectionsCache | back to summary |
|---|---|
| private final ConcurrentMap<String, LongAdder> activeConnectionsCache | |
| activeStreamsCache | back to summary |
|---|---|
| private final ConcurrentMap<String, LongAdder> activeStreamsCache | |
| dataReceivedCache | back to summary |
|---|---|
| private final ConcurrentMap<String, io. Hides reactor. | |
| dataSentCache | back to summary |
|---|---|
| private final ConcurrentMap<String, io. Hides reactor. | |
| errorsCache | back to summary |
|---|---|
| private final ConcurrentMap<String, io. Hides reactor. | |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final MicrometerHttpServerMetricsRecorder INSTANCE | |
| PROTOCOL_VALUE_HTTP | back to summary |
|---|---|
| private static final String PROTOCOL_VALUE_HTTP | |
| MicrometerHttpServerMetricsRecorder | back to summary |
|---|---|
| private MicrometerHttpServerMetricsRecorder() | |
| getActiveStreamsAdder | back to summary |
|---|---|
pack-priv LongAdder getActiveStreamsAdder(SocketAddress localAddress)
| |
| getResponseTimeTimer | back to summary |
|---|---|
pack-priv final io.
| |
| getServerConnectionAdder | back to summary |
|---|---|
pack-priv LongAdder getServerConnectionAdder(SocketAddress localAddress)
| |
| incrementErrorsCount | back to summary |
|---|---|
| public void incrementErrorsCount(SocketAddress remoteAddress, String uri) Overrides reactor. Implements reactor. Doc from reactor. Increments the number of the errors that are occurred.
| |
| incrementErrorsCount | back to summary |
|---|---|
| public void incrementErrorsCount(SocketAddress remoteAddress) Overrides reactor. Implements reactor. Doc from reactor. Increments the number of the errors that are occurred.
| |
| recordConnectTime | back to summary |
|---|---|
| public void recordConnectTime(SocketAddress remoteAddress, Duration time, String status) Overrides reactor. Implements reactor. Doc from reactor. Records the time that is spent for connecting to the remote address. Relevant only when on the client
| |
| recordDataReceived | back to summary |
|---|---|
| public void recordDataReceived(SocketAddress remoteAddress, String uri, long bytes) Overrides reactor. Implements reactor. Doc from reactor. Records the amount of the data that is received, in bytes.
| |
| recordDataReceived | back to summary |
|---|---|
| public void recordDataReceived(SocketAddress remoteAddress, long bytes) Overrides reactor. Implements reactor. Doc from reactor. Records the amount of the data that is received, in bytes.
| |
| recordDataReceivedTime | back to summary |
|---|---|
| public void recordDataReceivedTime(String uri, String method, Duration time) Implements reactor. Doc from reactor. Records the time that is spent in consuming incoming data. | |
| recordDataSent | back to summary |
|---|---|
| public void recordDataSent(SocketAddress remoteAddress, String uri, long bytes) Overrides reactor. Implements reactor. Doc from reactor. Records the amount of the data that is sent, in bytes.
| |
| recordDataSent | back to summary |
|---|---|
| public void recordDataSent(SocketAddress remoteAddress, long bytes) Overrides reactor. Implements reactor. Doc from reactor. Records the amount of the data that is sent, in bytes.
| |
| recordDataSentTime | back to summary |
|---|---|
| public void recordDataSentTime(String uri, String method, String status, Duration time) Implements reactor. Doc from reactor. Records the time that is spent in sending outgoing data. | |
| recordResolveAddressTime | back to summary |
|---|---|
| public void recordResolveAddressTime(SocketAddress remoteAddress, Duration time, String status) Overrides reactor. Implements reactor. Doc from reactor. Records the time that is spent for resolving the remote address. Relevant only when on the client.
| |
| recordResponseTime | back to summary |
|---|---|
| public void recordResponseTime(String uri, String method, String status, Duration time) Implements reactor. Doc from reactor. Records the total time for the request/response. | |
| recordServerConnectionActive | back to summary |
|---|---|
| public void recordServerConnectionActive(SocketAddress localAddress) Overrides default reactor. Doc from reactor. Record a new active in-use http connection.
| |
| recordServerConnectionInactive | back to summary |
|---|---|
| public void recordServerConnectionInactive(SocketAddress localAddress) Overrides default reactor. Doc from reactor. Record an inactive http connection.
| |
| recordStreamClosed | back to summary |
|---|---|
| public void recordStreamClosed(SocketAddress localAddress) Overrides default reactor. Doc from reactor. Record a closed HTTP/2 stream.
| |
| recordStreamOpened | back to summary |
|---|---|
| public void recordStreamOpened(SocketAddress localAddress) Overrides default reactor. Doc from reactor. Record an opened HTTP/2 stream.
| |
| recordTlsHandshakeTime | back to summary |
|---|---|
| public void recordTlsHandshakeTime(SocketAddress remoteAddress, Duration time, String status) Overrides reactor. Implements reactor. Doc from reactor. Records the time that is spent for TLS handshake.
| |