Package org.apache.accumulo.core.trace
Class TraceUtil
- java.lang.Object
-
- org.apache.accumulo.core.trace.TraceUtil
-
public class TraceUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description TraceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initializeTracer(AccumuloConfiguration conf)
static void
setException(io.opentelemetry.api.trace.Span span, Throwable e, boolean rethrown)
Record that an Exception occurred in the code covered by a Spanstatic io.opentelemetry.api.trace.Span
startClientRpcSpan(Class<?> caller, String spanName)
static io.opentelemetry.api.trace.Span
startFateSpan(Class<?> caller, String spanName, TInfo tinfo)
static io.opentelemetry.api.trace.Span
startServerRpcSpan(Class<?> caller, String spanName, TInfo tinfo)
static io.opentelemetry.api.trace.Span
startSpan(Class<?> caller, String spanName)
static io.opentelemetry.api.trace.Span
startSpan(Class<?> caller, String spanName, Map<String,String> attributes)
static TInfo
traceInfo()
ObtainTInfo
for the current context.static Runnable
unwrap(Runnable r)
static <T> Callable<T>
unwrap(Callable<T> c)
static Runnable
wrap(Runnable r)
static <T> Callable<T>
wrap(Callable<T> c)
static <T> T
wrapService(T instance)
-
-
-
Method Detail
-
initializeTracer
public static void initializeTracer(AccumuloConfiguration conf)
-
startSpan
public static io.opentelemetry.api.trace.Span startSpan(Class<?> caller, String spanName)
-
startSpan
public static io.opentelemetry.api.trace.Span startSpan(Class<?> caller, String spanName, Map<String,String> attributes)
-
startClientRpcSpan
public static io.opentelemetry.api.trace.Span startClientRpcSpan(Class<?> caller, String spanName)
-
startFateSpan
public static io.opentelemetry.api.trace.Span startFateSpan(Class<?> caller, String spanName, TInfo tinfo)
-
startServerRpcSpan
public static io.opentelemetry.api.trace.Span startServerRpcSpan(Class<?> caller, String spanName, TInfo tinfo)
-
setException
public static void setException(io.opentelemetry.api.trace.Span span, Throwable e, boolean rethrown)
Record that an Exception occurred in the code covered by a Span- Parameters:
span
- the spane
- the exceptionrethrown
- whether the exception is subsequently re-thrown
-
traceInfo
public static TInfo traceInfo()
ObtainTInfo
for the current context. This is used to send the current trace information to a remote process
-
wrapService
public static <T> T wrapService(T instance)
-
-