com.google.cloud.bigtable.hbase.util
Class HBaseTracingUtilities
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.util.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: This is a method of enabling exports to stackdriver along with the opencensus-exporter-trace-stackdriver artifact:int port = ... ; // Choose a port number try { HBaseTracingUtilities.setupTracingConfig(); ZPageHandlers.startHttpServerAndRegisterAll(port); } catch (Throwable e) { LOG.error("Could not initialize ZPageHandlers", e); }
try { StackdriverExporter.createAndRegister(projectId); } catch (Throwable e) { LOG.error("Could not register stackdriver", e); }
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
setupTracingConfig()
This is a one time setup for grpcz pages.
-