public interface InMemoryTracer
extends io.opentracing.Tracer
Tracer
that works with InMemorySpan
instances.Modifier and Type | Method and Description |
---|---|
InMemorySpan |
activeSpan() |
InMemorySpanBuilder |
buildSpan(java.lang.String operationName) |
<C> InMemorySpanContext |
extract(io.opentracing.propagation.Format<C> format,
C carrier) |
<C> void |
inject(InMemorySpanContext spanContext,
io.opentracing.propagation.Format<C> format,
C carrier)
Same as
inject(SpanContext, Format, Object) but requires a InMemorySpanContext . |
default <C> void |
inject(io.opentracing.SpanContext spanContext,
io.opentracing.propagation.Format<C> format,
C carrier) |
InMemoryScopeManager |
scopeManager() |
InMemoryScopeManager scopeManager()
scopeManager
in interface io.opentracing.Tracer
InMemorySpan activeSpan()
activeSpan
in interface io.opentracing.Tracer
InMemorySpanBuilder buildSpan(java.lang.String operationName)
buildSpan
in interface io.opentracing.Tracer
default <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
inject
in interface io.opentracing.Tracer
java.lang.ClassCastException
- if spanContext
is not of type InMemorySpanContext
.<C> void inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
inject(SpanContext, Format, Object)
but requires a InMemorySpanContext
.C
- The type of carrier.spanContext
- The InMemorySpanContext
to inject into carrier
.format
- The format to in which to inject into carrier
.carrier
- The carrier to be injected into.<C> InMemorySpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
extract
in interface io.opentracing.Tracer