public interface InMemoryScopeManager
extends io.opentracing.ScopeManager
ScopeManager
that works with InMemoryScope
instances.Modifier and Type | Method and Description |
---|---|
InMemoryScope |
activate(InMemorySpan span,
boolean finishSpanOnClose)
Same as
activate(Span, boolean) but the span must be of type InMemorySpan . |
default InMemoryScope |
activate(io.opentracing.Span span,
boolean finishSpanOnClose) |
InMemoryScope |
active() |
default InMemoryScope activate(io.opentracing.Span span, boolean finishSpanOnClose)
activate
in interface io.opentracing.ScopeManager
java.lang.ClassCastException
- if span
is not of type InMemorySpan
.InMemoryScope activate(InMemorySpan span, boolean finishSpanOnClose)
activate(Span, boolean)
but the span must be of type InMemorySpan
.span
- the InMemorySpan
to active.finishSpanOnClose
- true
to call Span.finish()
when Scope.close()
is
called.InMemoryScope
that has been activated.@Nullable InMemoryScope active()
active
in interface io.opentracing.ScopeManager