Package org.apache.accumulo.core.trace
Class DistributedTrace
- java.lang.Object
-
- org.apache.accumulo.core.trace.DistributedTrace
-
public class DistributedTrace extends Object
Utility class to enable tracing for Accumulo server processes.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRACE_HOST_PROPERTY
static String
TRACE_SERVICE_PROPERTY
static String
TRACER_ZK_HOST
static String
TRACER_ZK_PATH
static String
TRACER_ZK_TIMEOUT
-
Constructor Summary
Constructors Constructor Description DistributedTrace()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
disable()
Disable tracing by closing SpanReceivers for the current process.static void
enable()
Enable tracing by setting up SpanReceivers for the current process.static void
enable(String service)
Enable tracing by setting up SpanReceivers for the current process.static void
enable(String hostname, String service)
Enable tracing by setting up SpanReceivers for the current process.static void
enable(String hostname, String service, ClientConfiguration conf)
Enable tracing by setting up SpanReceivers for the current process.static void
enable(String hostname, String service, AccumuloConfiguration conf)
Enable tracing by setting up SpanReceivers for the current process.static void
enable(Instance instance, ZooReader zoo, String application, String address)
Deprecated.since 1.7, useenable(String, String, org.apache.accumulo.core.client.ClientConfiguration)
instead
-
-
-
Field Detail
-
TRACE_HOST_PROPERTY
public static final String TRACE_HOST_PROPERTY
- See Also:
- Constant Field Values
-
TRACE_SERVICE_PROPERTY
public static final String TRACE_SERVICE_PROPERTY
- See Also:
- Constant Field Values
-
TRACER_ZK_HOST
public static final String TRACER_ZK_HOST
- See Also:
- Constant Field Values
-
TRACER_ZK_TIMEOUT
public static final String TRACER_ZK_TIMEOUT
- See Also:
- Constant Field Values
-
TRACER_ZK_PATH
public static final String TRACER_ZK_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
enable
@Deprecated public static void enable(Instance instance, ZooReader zoo, String application, String address) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
Deprecated.since 1.7, useenable(String, String, org.apache.accumulo.core.client.ClientConfiguration)
instead- Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
-
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 includeClientConfiguration.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.
-
-