Package com.atlan.net
Class RequestMetrics
java.lang.Object
com.atlan.net.RequestMetrics
Class to capture response time metrics at the lowest level of granularity we can from the client-side.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Embed a new set of metrics into the provided response.long
toString()
-
Field Details
-
UPSTREAM_HEADER
Name of the header used to track milliseconds spent server-side in Atlan.- See Also:
-
PROXY_HEADER
Name of the header used to track milliseconds spent in Atlan's API proxy.- See Also:
-
-
Method Details
-
embed
Embed a new set of metrics into the provided response.- Parameters:
response
- into which to embed the metricselapsed
- elapsed time of the response that was measured by the SDK
-
toString
-
getRequestDurationUpstreamMs
-
getRequestDurationProxyMs
-
getRequestDurationTotalMs
public long getRequestDurationTotalMs()
-