Interface HttpMetricsRecorder

All Superinterfaces:
ChannelMetricsRecorder
All Known Subinterfaces:
HttpClientMetricsRecorder, HttpServerMetricsRecorder
All Known Implementing Classes:
ContextAwareHttpClientMetricsRecorder, ContextAwareHttpMetricsRecorder, ContextAwareHttpServerMetricsRecorder, MicrometerHttpMetricsRecorder

public interface HttpMetricsRecorder extends ChannelMetricsRecorder
Interface for recording metrics for HTTP protocol.
Author:
Violeta Georgieva
  • Method Details

    • recordDataReceived

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

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

      void incrementErrorsCount(SocketAddress remoteAddress, String uri)
      Increments the number of the errors that are occurred.
      Parameters:
      remoteAddress - The remote peer
      uri - the requested URI