Class BeamFnLoggingMDC
- java.lang.Object
-
- org.apache.beam.fn.harness.logging.BeamFnLoggingMDC
-
public class BeamFnLoggingMDC extends java.lang.ObjectMapped diagnostic context to be consumed and set on LogEntry protos in BeamFnLoggingClient.
-
-
Constructor Summary
Constructors Constructor Description BeamFnLoggingMDC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable java.lang.StringgetInstructionId()Gets the Instruction ID of the current thread.static @Nullable ExecutionStateSampler.ExecutionStateTrackergetStateTracker()Gets the State Tracker of the current thread.static voidreset()Resets to a default state.static voidsetInstructionId(@Nullable java.lang.String newInstructionId)Sets the Instruction ID of the current thread, which will be inherited by child threads.static voidsetStateTracker(@Nullable ExecutionStateSampler.ExecutionStateTracker newStateTracker)Sets the State Tracker of the current thread, which will be inherited by child threads.
-
-
-
Method Detail
-
setInstructionId
public static void setInstructionId(@Nullable java.lang.String newInstructionId)
Sets the Instruction ID of the current thread, which will be inherited by child threads.
-
getInstructionId
public static @Nullable java.lang.String getInstructionId()
Gets the Instruction ID of the current thread.
-
setStateTracker
public static void setStateTracker(@Nullable ExecutionStateSampler.ExecutionStateTracker newStateTracker)
Sets the State Tracker of the current thread, which will be inherited by child threads.
-
getStateTracker
public static @Nullable ExecutionStateSampler.ExecutionStateTracker getStateTracker()
Gets the State Tracker of the current thread.
-
reset
public static void reset()
Resets to a default state.
-
-