HBaseTracingUtilities (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.util

Class HBaseTracingUtilities



  • public final class HBaseTracingUtilities
    extends Object
    These utilities are to be used in conjunction with the opencensus-contrib-zpages artifact. After including the artifact, the following code can be used for enabling grpcz pages:
     int port = ... ; // Choose a port number
     try {
       HBaseTracingUtilities.setupTracingConfig();
       ZPageHandlers.startHttpServerAndRegisterAll(port);
     } catch (Throwable e) {
       LOG.error("Could not initialize ZPageHandlers", e);
     }
     
    This is a method of enabling exports to stackdriver along with the opencensus-exporter-trace-stackdriver artifact:
     try {
       StackdriverExporter.createAndRegister(projectId);
     } catch (Throwable e) {
       LOG.error("Could not register stackdriver", e);
     }
     
    • Method Detail

      • setupTracingConfig

        public static void setupTracingConfig()
        This is a one time setup for grpcz pages. This adds all of the methods to the Tracing environment required to show a consistent set of methods relating to Cloud Bigtable and HBase methods on the grpcz page.