Package com.google.cloud.bigtable.stats
Class StatsRecorderWrapper
java.lang.Object
com.google.cloud.bigtable.stats.StatsRecorderWrapper
A wrapper to record built-in metrics
-
Constructor Summary
ConstructorDescriptionStatsRecorderWrapper
(com.google.api.gax.tracing.ApiTracerFactory.OperationType operationType, com.google.api.gax.tracing.SpanName spanName, Map<String, String> statsAttributes, io.opencensus.stats.StatsRecorder statsRecorder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
putApplicationLatencies
(long applicationLatency) void
putAttemptLatencies
(long attemptLatency) void
putClientBlockingLatencies
(long clientBlockingLatency) void
putFirstResponseLatencies
(long firstResponseLatency) void
putGfeLatencies
(long serverLatency) void
putGfeMissingHeaders
(long connectivityErrors) void
putOperationLatencies
(long operationLatency) void
putRetryCount
(int attemptCount) void
recordAttempt
(String status, String tableId, String zone, String cluster) void
recordOperation
(String status, String tableId, String zone, String cluster)
-
Constructor Details
-
StatsRecorderWrapper
-
-
Method Details
-
recordOperation
-
recordAttempt
-
putOperationLatencies
public void putOperationLatencies(long operationLatency) -
putAttemptLatencies
public void putAttemptLatencies(long attemptLatency) -
putRetryCount
public void putRetryCount(int attemptCount) -
putApplicationLatencies
public void putApplicationLatencies(long applicationLatency) -
putFirstResponseLatencies
public void putFirstResponseLatencies(long firstResponseLatency) -
putGfeLatencies
public void putGfeLatencies(long serverLatency) -
putGfeMissingHeaders
public void putGfeMissingHeaders(long connectivityErrors) -
putClientBlockingLatencies
public void putClientBlockingLatencies(long clientBlockingLatency)
-