Interface InMemoryTracer

All Superinterfaces:
AutoCloseable, Closeable, io.opentracing.Tracer
All Known Implementing Classes:
DefaultInMemoryTracer

public interface InMemoryTracer extends io.opentracing.Tracer
A Tracer that works with InMemorySpan instances.
  • Method Details

    • scopeManager

      InMemoryScopeManager scopeManager()
      Specified by:
      scopeManager in interface io.opentracing.Tracer
    • activeSpan

      InMemorySpan activeSpan()
      Specified by:
      activeSpan in interface io.opentracing.Tracer
    • buildSpan

      InMemorySpanBuilder buildSpan(String operationName)
      Specified by:
      buildSpan in interface io.opentracing.Tracer
    • inject

      default <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
      Specified by:
      inject in interface io.opentracing.Tracer
      Throws:
      ClassCastException - if spanContext is not of type InMemorySpanContext.
    • inject

      <C> void inject(InMemorySpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
      Type Parameters:
      C - The type of carrier.
      Parameters:
      spanContext - The InMemorySpanContext to inject into carrier.
      format - The format to in which to inject into carrier.
      carrier - The carrier to be injected into.
    • extract

      <C> InMemorySpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
      Specified by:
      extract in interface io.opentracing.Tracer