Class StrictScopeDecorator

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

public final class StrictScopeDecorator
extends Object
implements CurrentTraceContext.ScopeDecorator, Closeable
Useful when developing instrumentation as state is enforced more strictly.

Ex.


 tracing = Tracing.newBuilder()
                  .spanReporter(...)
                  .currentTraceContext(ThreadLocalCurrentTraceContext.newBuilder()
                    .addScopeDecorator(StrictScopeDecorator.create())
                    .build()
                  ).build();