Interface InMemorySpanBuilder

  • All Superinterfaces:
    io.opentracing.Tracer.SpanBuilder

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

      • asChildOf

        InMemorySpanBuilder asChildOf​(io.opentracing.SpanContext parent)
        Specified by:
        asChildOf in interface io.opentracing.Tracer.SpanBuilder
      • asChildOf

        InMemorySpanBuilder asChildOf​(io.opentracing.Span parent)
        Specified by:
        asChildOf in interface io.opentracing.Tracer.SpanBuilder
      • addReference

        default InMemorySpanBuilder addReference​(java.lang.String referenceType,
                                                 io.opentracing.SpanContext referencedContext)
        Specified by:
        addReference in interface io.opentracing.Tracer.SpanBuilder
        Throws:
        java.lang.ClassCastException - if referencedContext is not of type InMemorySpanContext.
      • ignoreActiveSpan

        InMemorySpanBuilder ignoreActiveSpan()
        Specified by:
        ignoreActiveSpan in interface io.opentracing.Tracer.SpanBuilder
      • withTag

        InMemorySpanBuilder withTag​(java.lang.String key,
                                    java.lang.String value)
        Specified by:
        withTag in interface io.opentracing.Tracer.SpanBuilder
      • withTag

        InMemorySpanBuilder withTag​(java.lang.String key,
                                    boolean value)
        Specified by:
        withTag in interface io.opentracing.Tracer.SpanBuilder
      • withTag

        InMemorySpanBuilder withTag​(java.lang.String key,
                                    java.lang.Number value)
        Specified by:
        withTag in interface io.opentracing.Tracer.SpanBuilder
      • withStartTimestamp

        InMemorySpanBuilder withStartTimestamp​(long microseconds)
        Specified by:
        withStartTimestamp in interface io.opentracing.Tracer.SpanBuilder
      • start

        InMemorySpan start()
        Specified by:
        start in interface io.opentracing.Tracer.SpanBuilder