Class MTC
- java.lang.Object
-
- org.apache.ignite.internal.processors.tracing.MTC
-
public class MTC extends Object
Mapped tracing context. Thread local context which holding the information for tracing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMTC.TraceSurroundingsHelper for managing of span life cycle.
-
Constructor Summary
Constructors Constructor Description MTC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull Spanspan()static MTC.TraceSurroundingssupport(Span startSpan)Attach given span to current thread if it isn't null or NOOP_SPAN.static MTC.TraceSurroundingssupportContinual(Span startSpan)Attach given span to current thread if it isn't null or NOOP_SPAN.static voidsupportInitial(Span startSpan)Support initial span.
-
-
-
Method Detail
-
span
@NotNull public static @NotNull Span span()
- Returns:
- Span which corresponded to current thread or null if it doesn't not set.
-
support
public static MTC.TraceSurroundings support(Span startSpan)
Attach given span to current thread if it isn't null or NOOP_SPAN. Detach given span, close it and return previous span whenMTC.TraceSurroundings.close()would be called.- Parameters:
startSpan- Span which should be added to current thread.- Returns:
MTC.TraceSurroundingsfor manage span life cycle or null in case of null or no-op span.
-
supportInitial
public static void supportInitial(Span startSpan)
Support initial span.- Parameters:
startSpan- Span which should be added to current thread.
-
supportContinual
public static MTC.TraceSurroundings supportContinual(Span startSpan)
Attach given span to current thread if it isn't null or NOOP_SPAN.- Parameters:
startSpan- Span which should be added to current thread.- Returns:
MTC.TraceSurroundingsfor manage span life cycle or null in case of null or no-op span.
-
-