Interface HttpClientMetricsRecorder

All Superinterfaces:
ChannelMetricsRecorder, HttpMetricsRecorder
All Known Implementing Classes:
ContextAwareHttpClientMetricsRecorder

public interface HttpClientMetricsRecorder extends HttpMetricsRecorder
Interface for collecting metrics on HTTP client level.
Author:
Violeta Georgieva
  • Method Details

    • recordDataReceivedTime

      void recordDataReceivedTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
      Records the time that is spent in consuming incoming data.
      Parameters:
      remoteAddress - The remote peer
      uri - the requested URI
      method - the HTTP method
      status - the HTTP status
      time - the time in nanoseconds that is spent in consuming incoming data
    • recordDataReceivedTime

      default void recordDataReceivedTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time)
      Records the time that is spent in consuming incoming data.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      method - the HTTP method
      status - the HTTP status
      time - the time in nanoseconds that is spent in consuming incoming data
      Since:
      1.1.17
    • recordDataSentTime

      void recordDataSentTime(SocketAddress remoteAddress, String uri, String method, Duration time)
      Records the time that is spent in sending outgoing data.
      Parameters:
      remoteAddress - The remote peer
      uri - the requested URI
      method - the HTTP method
      time - the time in nanoseconds that is spent in sending outgoing data
    • recordDataSentTime

      default void recordDataSentTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, Duration time)
      Records the time that is spent in sending outgoing data.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      method - the HTTP method
      time - the time in nanoseconds that is spent in sending outgoing data
      Since:
      1.1.17
    • recordResponseTime

      void recordResponseTime(SocketAddress remoteAddress, String uri, String method, String status, Duration time)
      Records the total time for the request/response.
      Parameters:
      remoteAddress - The remote peer
      uri - the requested URI
      method - the HTTP method
      status - the HTTP status
      time - the total time in nanoseconds for the request/response
    • recordResponseTime

      default void recordResponseTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String method, String status, Duration time)
      Records the total time for the request/response.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      method - the HTTP method
      status - the HTTP status
      time - the total time in nanoseconds for the request/response
      Since:
      1.1.17
    • recordDataReceived

      default void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes)
      Records the amount of the data that is received, in bytes.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      bytes - The amount of the data that is received, in bytes
      Since:
      1.1.17
    • recordDataSent

      default void recordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, long bytes)
      Records the amount of the data that is sent, in bytes.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      bytes - The amount of the data that is sent, in bytes
      Since:
      1.1.17
    • incrementErrorsCount

      default void incrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri)
      Increments the number of the errors that have occurred.
      Parameters:
      remoteAddress - The remote peer
      proxyAddress - the proxy address
      uri - the requested URI
      Since:
      1.1.17