Interface InMemoryTracer
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,io.opentracing.Tracer
- All Known Implementing Classes:
DefaultInMemoryTracer
public interface InMemoryTracer extends io.opentracing.Tracer
ATracer
that works withInMemorySpan
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InMemorySpan
activeSpan()
InMemorySpanBuilder
buildSpan(java.lang.String operationName)
<C> InMemorySpanContext
extract(io.opentracing.propagation.Format<C> format, C carrier)
default <C> void
inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
<C> void
inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
Same asinject(SpanContext, Format, Object)
but requires aInMemorySpanContext
.InMemoryScopeManager
scopeManager()
-
-
-
Method Detail
-
scopeManager
InMemoryScopeManager scopeManager()
- Specified by:
scopeManager
in interfaceio.opentracing.Tracer
-
activeSpan
InMemorySpan activeSpan()
- Specified by:
activeSpan
in interfaceio.opentracing.Tracer
-
buildSpan
InMemorySpanBuilder buildSpan(java.lang.String operationName)
- Specified by:
buildSpan
in interfaceio.opentracing.Tracer
-
inject
default <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
- Specified by:
inject
in interfaceio.opentracing.Tracer
- Throws:
java.lang.ClassCastException
- ifspanContext
is not of typeInMemorySpanContext
.
-
inject
<C> void inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
Same asinject(SpanContext, Format, Object)
but requires aInMemorySpanContext
.- 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
<C> InMemorySpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
- Specified by:
extract
in interfaceio.opentracing.Tracer
-
-