Interface InMemoryTracer

  • All Superinterfaces:
    java.lang.AutoCloseable,, io.opentracing.Tracer
    All Known Implementing Classes:

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

      • 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​(java.lang.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
        java.lang.ClassCastException - if spanContext is not of type InMemorySpanContext.
      • extract

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