Class StrictScopeDecorator

  • All Implemented Interfaces:
    CurrentTraceContext.ScopeDecorator

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

    Ex.

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