CurrentTraceContext.ScopeDecoratorpublic final class StrictScopeDecorator extends Object implements CurrentTraceContext.ScopeDecorator
Ex.
tracing = Tracing.newBuilder()
.spanReporter(...)
.currentTraceContext(ThreadLocalCurrentTraceContext.newBuilder()
.addScopeDecorator(StrictScopeDecorator.create())
.build()
).build();
| Modifier and Type | Method | Description |
|---|---|---|
static CurrentTraceContext.ScopeDecorator |
create() |
|
CurrentTraceContext.Scope |
decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
public static CurrentTraceContext.ScopeDecorator create()
public CurrentTraceContext.Scope decorateScope(@Nullable TraceContext currentSpan, CurrentTraceContext.Scope scope)
decorateScope in interface CurrentTraceContext.ScopeDecoratorCopyright © 2018 OpenZipkin. All rights reserved.