public interface HttpServerMetricsRecorder extends HttpMetricsRecorder
Modifier and Type | Method and Description |
---|---|
void |
recordDataReceivedTime(String uri,
String method,
java.time.Duration time)
Records the time that is spent in consuming incoming data
|
void |
recordDataSentTime(String uri,
String method,
String status,
java.time.Duration time)
Records the time that is spent in sending outgoing data
|
void |
recordResponseTime(String uri,
String method,
String status,
java.time.Duration time)
Records the total time for the request/response
|
incrementErrorsCount, recordDataReceived, recordDataSent
incrementErrorsCount, recordConnectTime, recordDataReceived, recordDataSent, recordResolveAddressTime, recordTlsHandshakeTime
void recordDataReceivedTime(String uri, String method, java.time.Duration time)
uri
- the requested URImethod
- the HTTP methodtime
- the time in nanoseconds that is spent in consuming incoming datavoid recordDataSentTime(String uri, String method, String status, java.time.Duration time)
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the time in nanoseconds that is spent in sending outgoing datavoid recordResponseTime(String uri, String method, String status, java.time.Duration time)
uri
- the requested URImethod
- the HTTP methodstatus
- the HTTP statustime
- the total time in nanoseconds for the request/response