Package org.apache.ignite.lang.util
Class TraceIdUtils
java.lang.Object
org.apache.ignite.lang.util.TraceIdUtils
This utility class allows to extract trace identifier from an instance of
TraceableException
or creating a new trace identifier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUID
getOrCreateTraceId
(@Nullable Throwable t) Returns trace identifier from the provided throwable if it is an instance ofTraceableException
or it has a cause that is an instance ofTraceableException
.
-
Constructor Details
-
TraceIdUtils
public TraceIdUtils()
-
-
Method Details
-
getOrCreateTraceId
Returns trace identifier from the provided throwable if it is an instance ofTraceableException
or it has a cause that is an instance ofTraceableException
. Otherwise a new trace identifier is generated.- Parameters:
t
- Throwable to extract a trace identifier.- Returns:
- Returns trace identifier.
-