Class StatsRecorderWrapper (2.16.0)

public class StatsRecorderWrapper

A wrapper to record built-in metrics

Inheritance

java.lang.Object > StatsRecorderWrapper

Constructors

StatsRecorderWrapper(ApiTracerFactory.OperationType operationType, SpanName spanName, Map<String,String> statsAttributes, StatsRecorder statsRecorder)

public StatsRecorderWrapper(ApiTracerFactory.OperationType operationType, SpanName spanName, Map<String,String> statsAttributes, StatsRecorder statsRecorder)
Parameters
NameDescription
operationTypeOperationType
spanNameSpanName
statsAttributesMap<String,String>
statsRecorderio.opencensus.stats.StatsRecorder

Methods

putApplicationLatencies(long applicationLatency)

public void putApplicationLatencies(long applicationLatency)
Parameter
NameDescription
applicationLatencylong

putAttemptLatencies(long attemptLatency)

public void putAttemptLatencies(long attemptLatency)
Parameter
NameDescription
attemptLatencylong

putBatchRequestThrottled(long throttledTimeMs)

public void putBatchRequestThrottled(long throttledTimeMs)
Parameter
NameDescription
throttledTimeMslong

putFirstResponseLatencies(long firstResponseLatency)

public void putFirstResponseLatencies(long firstResponseLatency)
Parameter
NameDescription
firstResponseLatencylong

putGfeLatencies(long serverLatency)

public void putGfeLatencies(long serverLatency)
Parameter
NameDescription
serverLatencylong

putGfeMissingHeaders(long connectivityErrors)

public void putGfeMissingHeaders(long connectivityErrors)
Parameter
NameDescription
connectivityErrorslong

putOperationLatencies(long operationLatency)

public void putOperationLatencies(long operationLatency)
Parameter
NameDescription
operationLatencylong

putRetryCount(int attemptCount)

public void putRetryCount(int attemptCount)
Parameter
NameDescription
attemptCountint

recordAttempt(String status, String tableId, String zone, String cluster)

public void recordAttempt(String status, String tableId, String zone, String cluster)
Parameters
NameDescription
statusString
tableIdString
zoneString
clusterString

recordOperation(String status, String tableId, String zone, String cluster)

public void recordOperation(String status, String tableId, String zone, String cluster)
Parameters
NameDescription
statusString
tableIdString
zoneString
clusterString