TracingUtilities (Cloud Bigtable HBase Client for Java 1.5.0 API)

com.google.cloud.bigtable.util

Class TracingUtilities



  • public final class TracingUtilities
    extends Object
    These utilities are to be used in conjunction with the opencensus-contrib-zpages artifact to display a consistent set of Cloud Bigtable RPC methods.

    NOTE: if you are using HBase, use HBaseTracingUtilities instead of TracingUtilities.

    After including the artifact, the following code can be used for enabling grpcz pages:

     int port = ... ; // Choose a port number
     try {
       TracingUtilities.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 on the grpcz page. If HBase artifacts are present, this will add tracing metadata for HBase methods.


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Bigtable Documentation