Interface TimeExtractor<REQUEST,RESPONSE>


@Deprecated public interface TimeExtractor<REQUEST,RESPONSE>
Deprecated.
Setting operation start and end times is not currently supported.
Extractor of the start and end times of request processing.

Note: if metrics are generated by the Instrumenter, the start and end times from the TimeExtractor will be used to generate any duration metrics, but the internal metric timestamp (when it occurred) will always be stamped with "now" when the metric is recorded (i.e. there is no way to back date a metric recording).

  • Method Summary

    Modifier and Type
    Method
    Description
    extractEndTime(REQUEST request, RESPONSE response, Throwable error)
    Deprecated.
    Returns the timestamp marking the end of the request processing.
    Deprecated.
    Returns the timestamp marking the start of the request processing.
  • Method Details

    • extractStartTime

      Instant extractStartTime(REQUEST request)
      Deprecated.
      Returns the timestamp marking the start of the request processing.
    • extractEndTime

      Instant extractEndTime(REQUEST request, @Nullable RESPONSE response, @Nullable Throwable error)
      Deprecated.
      Returns the timestamp marking the end of the request processing.