Class ContextAwareHttpServerMetricsRecorder

All Implemented Interfaces:
ChannelMetricsRecorder, HttpMetricsRecorder, HttpServerMetricsRecorder

public abstract class ContextAwareHttpServerMetricsRecorder extends ContextAwareHttpMetricsRecorder implements HttpServerMetricsRecorder
ContextView aware class for collecting metrics on HTTP server level.
Since:
1.0.8
Author:
Violeta Georgieva
  • Constructor Details

    • ContextAwareHttpServerMetricsRecorder

      public ContextAwareHttpServerMetricsRecorder()
  • Method Details

    • recordDataReceivedTime

      public abstract void recordDataReceivedTime(ContextView contextView, String uri, String method, Duration time)
      Records the time that is spent in consuming incoming data.
      Parameters:
      contextView - The current ContextView associated with the Mono/Flux
      uri - The requested URI
      method - The HTTP method
      time - The time in nanoseconds that is spent in consuming incoming data
    • recordDataSentTime

      public abstract void recordDataSentTime(ContextView contextView, String uri, String method, String status, Duration time)
      Records the time that is spent in sending outgoing data.
      Parameters:
      contextView - The current ContextView associated with the Mono/Flux
      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

      public abstract void recordResponseTime(ContextView contextView, String uri, String method, String status, Duration time)
      Records the total time for the request/response.
      Parameters:
      contextView - The current ContextView associated with the Mono/Flux
      uri - The requested URI
      method - The HTTP method
      status - The HTTP status
      time - The total time in nanoseconds for the request/response
    • recordDataReceivedTime

      public void recordDataReceivedTime(String uri, String method, Duration time)
      Description copied from interface: HttpServerMetricsRecorder
      Records the time that is spent in consuming incoming data.
      Specified by:
      recordDataReceivedTime in interface HttpServerMetricsRecorder
      Parameters:
      uri - the requested URI
      method - the HTTP method
      time - the time in nanoseconds that is spent in consuming incoming data
    • recordDataSentTime

      public void recordDataSentTime(String uri, String method, String status, Duration time)
      Description copied from interface: HttpServerMetricsRecorder
      Records the time that is spent in sending outgoing data.
      Specified by:
      recordDataSentTime in interface HttpServerMetricsRecorder
      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

      public void recordResponseTime(String uri, String method, String status, Duration time)
      Description copied from interface: HttpServerMetricsRecorder
      Records the total time for the request/response.
      Specified by:
      recordResponseTime in interface HttpServerMetricsRecorder
      Parameters:
      uri - the requested URI
      method - the HTTP method
      status - the HTTP status
      time - the total time in nanoseconds for the request/response