public final class DefaultInMemoryTracer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultInMemoryTracer.Builder
Builders for
DefaultInMemoryTracer. |
| 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
InMemoryTracer.inject(SpanContext, Format, Object) but requires a InMemorySpanContext. |
protected InMemorySpanContext |
newSpanContext(InMemoryTraceState state)
Create a span context with given trace state.
|
InMemoryScopeManager |
scopeManager() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinjectpublic InMemoryScopeManager scopeManager()
@Nullable public InMemorySpan activeSpan()
public InMemorySpanBuilder buildSpan(java.lang.String operationName)
protected InMemorySpanContext newSpanContext(InMemoryTraceState state)
state - The state for the trace.public final <C> void inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
InMemoryTracerInMemoryTracer.inject(SpanContext, Format, Object) but requires a InMemorySpanContext.inject in interface InMemoryTracerC - 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.@Nullable public final <C> InMemorySpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
extract in interface io.opentracing.Tracerextract in interface InMemoryTracer