Interface HttpServerMetricsRecorder

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

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

    • recordDataReceivedTime

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

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

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

      default void recordServerConnectionActive(SocketAddress localAddress)
      Record a new active in-use http connection.
      Parameters:
      localAddress - the local server address
      Since:
      1.0.15
    • recordServerConnectionInactive

      default void recordServerConnectionInactive(SocketAddress localAddress)
      Record an inactive http connection.
      Parameters:
      localAddress - the local server address
      Since:
      1.0.15
    • recordStreamOpened

      default void recordStreamOpened(SocketAddress localAddress)
      Record an opened HTTP/2 stream.
      Parameters:
      localAddress - the local server address
      Since:
      1.0.21
    • recordStreamClosed

      default void recordStreamClosed(SocketAddress localAddress)
      Record a closed HTTP/2 stream.
      Parameters:
      localAddress - the local server address
      Since:
      1.0.21