Class DistributedTrace


  • public class DistributedTrace
    extends Object
    Utility class to enable tracing for Accumulo server processes.
    • Constructor Detail

      • DistributedTrace

        public DistributedTrace()
    • Method Detail

      • enable

        public static void enable()
        Enable tracing by setting up SpanReceivers for the current process.
      • enable

        public static void enable​(String service)
        Enable tracing by setting up SpanReceivers for the current process. If service name is null, the simple name of the class will be used.
      • enable

        public static void enable​(String hostname,
                                  String service)
        Enable tracing by setting up SpanReceivers for the current process. If host name is null, it will be determined. If service name is null, the simple name of the class will be used.
      • enable

        public static void enable​(String hostname,
                                  String service,
                                  ClientConfiguration conf)
        Enable tracing by setting up SpanReceivers for the current process. If host name is null, it will be determined. If service name is null, the simple name of the class will be used. Properties required in the client configuration include ClientConfiguration.ClientProperty.TRACE_SPAN_RECEIVERS and any properties specific to the span receiver.
      • enable

        public static void enable​(String hostname,
                                  String service,
                                  AccumuloConfiguration conf)
        Enable tracing by setting up SpanReceivers for the current process. If host name is null, it will be determined. If service name is null, the simple name of the class will be used.
      • disable

        public static void disable()
        Disable tracing by closing SpanReceivers for the current process.