public class LatencyTracker extends Object
LatencyTracker
keeps track of client-preceived request latencies, to be reported on the next REST request.
Every request adds its result (success/failure and latency) to LatencyTracker. When a request is made,
the SDK checks LatencyTracker to see if there are any latency stats to be reported. If so, the stats are added
as an HTTP header (x-ms-adl-client-latency
) on the next request.
To disable this reporting, user can call disable()
.
Modifier and Type | Method and Description |
---|---|
static void |
disable()
Disable reporting of client-perceived latency stats to the server.
|
Copyright © 2019 Microsoft Corporation. All rights reserved.