| Modifier and Type | Field and Description | 
|---|---|
| private static org.apache.htrace.core.HTraceConfiguration | conf | 
| private static org.apache.htrace.core.Tracer | tracer | 
| Modifier | Constructor and Description | 
|---|---|
| private  | TraceUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addKVAnnotation(String key,
               String value)Wrapper method to add key-value pair to TraceInfo of actual span | 
| static boolean | addReceiver(org.apache.htrace.core.SpanReceiver rcvr)Wrapper method to add receiver to actual tracerpool | 
| static boolean | addSampler(org.apache.htrace.core.Sampler sampler)Wrapper method to add new sampler to the default tracer | 
| static void | addTimelineAnnotation(String msg)Wrapper method to add timeline annotiation to current span with given message | 
| static org.apache.htrace.core.TraceScope | createTrace(String description)Wrapper method to create new TraceScope with the given description | 
| static org.apache.htrace.core.TraceScope | createTrace(String description,
           org.apache.htrace.core.Span span)Wrapper method to create new child TraceScope with the given description
 and parent scope's spanId | 
| static void | initTracer(org.apache.hadoop.conf.Configuration c) | 
| static boolean | removeReceiver(org.apache.htrace.core.SpanReceiver rcvr)Wrapper method to remove receiver from actual tracerpool | 
| static Runnable | wrap(Runnable runnable,
    String description)Wrap runnable with current tracer and description | 
private static org.apache.htrace.core.HTraceConfiguration conf
private static org.apache.htrace.core.Tracer tracer
private TraceUtil()
public static void initTracer(org.apache.hadoop.conf.Configuration c)
public static org.apache.htrace.core.TraceScope createTrace(String description)
public static org.apache.htrace.core.TraceScope createTrace(String description, org.apache.htrace.core.Span span)
span - parent spanpublic static boolean addSampler(org.apache.htrace.core.Sampler sampler)
public static void addKVAnnotation(String key, String value)
public static boolean addReceiver(org.apache.htrace.core.SpanReceiver rcvr)
public static boolean removeReceiver(org.apache.htrace.core.SpanReceiver rcvr)
public static void addTimelineAnnotation(String msg)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.