Class StatsRecorderWrapper

java.lang.Object
com.google.cloud.bigtable.stats.StatsRecorderWrapper

@InternalApi("For internal use only") public class StatsRecorderWrapper extends Object
A wrapper to record built-in metrics
  • Constructor Details

    • StatsRecorderWrapper

      public StatsRecorderWrapper(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 Details

    • recordOperation

      public void recordOperation(String status, String tableId, String zone, String cluster)
    • recordAttempt

      public void recordAttempt(String status, String tableId, String zone, String cluster)
    • 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)