Class CurrentTraceContextAssemblyTracking


  • public final class CurrentTraceContextAssemblyTracking
    extends java.lang.Object
    Prevents traces from breaking during RxJava operations by scoping trace context that existed at assembly time around callbacks or computation of new values.

    The design of this library borrows heavily from https://github.com/akaita/RxJava2Debug and https://github.com/akarnokd/RxJava2Extensions

    • Method Detail

      • enableAndChain

        public CurrentTraceContextAssemblyTracking.SavedHooks enableAndChain()
        Enable the protocol violation hooks by chaining it before any existing hook.
        Returns:
        the SavedHooks instance that allows restoring the previous assembly hook handlers overridden by this method
        See Also:
        enable()
      • disable

        public static void disable()
        Disables the validation hooks be resetting the assembled hooks to none.
      • isEnabled

        public static boolean isEnabled()
        Returns true if the validation hooks have been installed.