Class StrictCurrentTraceContext

java.lang.Object
brave.propagation.CurrentTraceContext
brave.propagation.StrictCurrentTraceContext
All Implemented Interfaces:
Closeable, AutoCloseable

public final class StrictCurrentTraceContext
extends CurrentTraceContext
implements Closeable
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.

See Also:
StrictScopeDecorator