public final class StrictCurrentTraceContext extends CurrentTraceContext
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.
CurrentTraceContext.DefaultCurrentTraceContext.Default, CurrentTraceContext.Scope| Constructor | Description |
|---|---|
StrictCurrentTraceContext() |
| Modifier and Type | Method | Description |
|---|---|---|
TraceContext |
get() |
Returns the current span in scope or null if there isn't one.
|
CurrentTraceContext.Scope |
newScope(TraceContext currentSpan) |
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
executor, executorService, wrap, wrappublic TraceContext get()
CurrentTraceContextget in class CurrentTraceContextpublic CurrentTraceContext.Scope newScope(@Nullable TraceContext currentSpan)
newScope in class CurrentTraceContextcurrentSpan - span to place into scope or null to clear the scopeCopyright © 2017 OpenZipkin. All rights reserved.