Package com.atlan.net

Class RequestMetrics

java.lang.Object
com.atlan.net.RequestMetrics

public class RequestMetrics extends Object
Class to capture response time metrics at the lowest level of granularity we can from the client-side.
  • Field Details

    • UPSTREAM_HEADER

      public static final String UPSTREAM_HEADER
      Name of the header used to track milliseconds spent server-side in Atlan.
      See Also:
    • PROXY_HEADER

      public static final String PROXY_HEADER
      Name of the header used to track milliseconds spent in Atlan's API proxy.
      See Also:
  • Method Details

    • embed

      public static void embed(com.atlan.net.AbstractAtlanResponse<?> response, Duration elapsed)
      Embed a new set of metrics into the provided response.
      Parameters:
      response - into which to embed the metrics
      elapsed - elapsed time of the response that was measured by the SDK
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRequestDurationUpstreamMs

      public Long getRequestDurationUpstreamMs()
    • getRequestDurationProxyMs

      public Long getRequestDurationProxyMs()
    • getRequestDurationTotalMs

      public long getRequestDurationTotalMs()