Interface InMemoryTracer
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,io.opentracing.Tracer
- All Known Implementing Classes:
DefaultInMemoryTracer
public interface InMemoryTracer extends io.opentracing.TracerATracerthat works withInMemorySpaninstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InMemorySpanactiveSpan()InMemorySpanBuilderbuildSpan(java.lang.String operationName)<C> InMemorySpanContextextract(io.opentracing.propagation.Format<C> format, C carrier)default <C> voidinject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)<C> voidinject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)Same asinject(SpanContext, Format, Object)but requires aInMemorySpanContext.InMemoryScopeManagerscopeManager()
-
-
-
Method Detail
-
scopeManager
InMemoryScopeManager scopeManager()
- Specified by:
scopeManagerin interfaceio.opentracing.Tracer
-
activeSpan
InMemorySpan activeSpan()
- Specified by:
activeSpanin interfaceio.opentracing.Tracer
-
buildSpan
InMemorySpanBuilder buildSpan(java.lang.String operationName)
- Specified by:
buildSpanin interfaceio.opentracing.Tracer
-
inject
default <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)- Specified by:
injectin interfaceio.opentracing.Tracer- Throws:
java.lang.ClassCastException- ifspanContextis 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- TheInMemorySpanContextto 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:
extractin interfaceio.opentracing.Tracer
-
-