Module brave

Class StrictCurrentTraceContext


  • @Deprecated
    public final class StrictCurrentTraceContext
    extends ThreadLocalCurrentTraceContext
    Deprecated.
    use StrictScopeDecorator. This will be removed in Brave v6.
    Useful when developing instrumentation as state is enforced more strictly.

    For example, it is instance scoped as opposed to static scoped, not inheritable and throws an exception if a scope is closed on a different thread that it was opened on.

    • Constructor Detail

      • StrictCurrentTraceContext

        public StrictCurrentTraceContext()
        Deprecated.