Class DefaultInMemoryTracer
java.lang.Object
io.servicetalk.opentracing.inmemory.DefaultInMemoryTracer
- All Implemented Interfaces:
io.opentracing.Tracer
,InMemoryTracer
,Closeable
,AutoCloseable
Tracer implementation that propagates spans in-memory and emits events to listeners.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.opentracing.Tracer
io.opentracing.Tracer.SpanBuilder
-
Method Summary
Modifier and TypeMethodDescriptionio.opentracing.Scope
activateSpan
(io.opentracing.Span span) void
close()
final <C> InMemorySpanContext
extract
(io.opentracing.propagation.Format<C> format, C carrier) final <C> void
inject
(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier) Same asInMemoryTracer.inject(SpanContext, Format, Object)
but requires aInMemorySpanContext
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.opentracing.inmemory.api.InMemoryTracer
inject
-
Method Details
-
scopeManager
-
activeSpan
-
activateSpan
public io.opentracing.Scope activateSpan(io.opentracing.Span span) -
buildSpan
-
close
public void close() -
inject
public final <C> void inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier) Description copied from interface:InMemoryTracer
Same asInMemoryTracer.inject(SpanContext, Format, Object)
but requires aInMemorySpanContext
.- Specified by:
inject
in interfaceInMemoryTracer
- Type Parameters:
C
- The type of carrier.- Parameters:
spanContext
- TheInMemorySpanContext
to inject intocarrier
.format
- The format to in which to inject intocarrier
.carrier
- The carrier to be injected into.
-
extract
@Nullable public final <C> InMemorySpanContext extract(io.opentracing.propagation.Format<C> format, C carrier) - Specified by:
extract
in interfaceInMemoryTracer
- Specified by:
extract
in interfaceio.opentracing.Tracer
-