Top Description Methods
reactor.netty.http.server

public Interface HttpServerMetricsRecorder

extends HttpMetricsRecorder
Known Direct Implementers
reactor.netty.http.server.MicrometerHttpServerMetricsRecorder, reactor.netty.http.server.ContextAwareHttpServerMetricsRecorder
Imports
reactor.netty.http.HttpMetricsRecorder, java.net.SocketAddress, java.time.Duration

Interface for collecting metrics on HTTP server level.
Author
Violeta Georgieva

Method Summary

Modifier and TypeMethod and Description
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
)

Records the time that is spent in consuming incoming data.

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
)

Records the time that is spent in sending outgoing data.

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
)

Records the total time for the request/response.

public default void
recordServerConnectionActive(SocketAddress
the local server address
localAddress
)

Record a new active in-use http connection.

public default void
recordServerConnectionInactive(SocketAddress
the local server address
localAddress
)

Record an inactive http connection.

public default void
recordStreamClosed(SocketAddress
the local server address
localAddress
)

Record a closed HTTP/2 stream.

public default void
recordStreamOpened(SocketAddress
the local server address
localAddress
)

Record an opened HTTP/2 stream.

Inherited from reactor.netty.http.HttpMetricsRecorder:
incrementErrorsCountrecordDataReceivedrecordDataSent

Method Detail

recordDataReceivedTimeback to summary
public void recordDataReceivedTime(String uri, String method, Duration time)

Records the time that is spent in consuming incoming data.

Parameters
uri:String

the requested URI

method:String

the HTTP method

time:Duration

the time in nanoseconds that is spent in consuming incoming data

recordDataSentTimeback to summary
public void recordDataSentTime(String uri, String method, String status, Duration time)

Records the time that is spent in sending outgoing data.

Parameters
uri:String

the requested URI

method:String

the HTTP method

status:String

the HTTP status

time:Duration

the time in nanoseconds that is spent in sending outgoing data

recordResponseTimeback to summary
public void recordResponseTime(String uri, String method, String status, Duration time)

Records the total time for the request/response.

Parameters
uri:String

the requested URI

method:String

the HTTP method

status:String

the HTTP status

time:Duration

the total time in nanoseconds for the request/response

recordServerConnectionActiveback to summary
public default void recordServerConnectionActive(SocketAddress localAddress)

Record a new active in-use http connection.

Parameters
localAddress:SocketAddress

the local server address

Since
1.0.15
recordServerConnectionInactiveback to summary
public default void recordServerConnectionInactive(SocketAddress localAddress)

Record an inactive http connection.

Parameters
localAddress:SocketAddress

the local server address

Since
1.0.15
recordStreamClosedback to summary
public default void recordStreamClosed(SocketAddress localAddress)

Record a closed HTTP/2 stream.

Parameters
localAddress:SocketAddress

the local server address

Since
1.0.21
recordStreamOpenedback to summary
public default void recordStreamOpened(SocketAddress localAddress)

Record an opened HTTP/2 stream.

Parameters
localAddress:SocketAddress

the local server address

Since
1.0.21