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 Details

    • asChildOf

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

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

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

      InMemorySpanBuilder addReference(String referenceType, InMemorySpanContext referencedContext)
      Parameters:
      referenceType - the reference type.
      referencedContext - the reference context.
      Returns:
      this.
    • ignoreActiveSpan

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

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

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

      InMemorySpanBuilder withTag(String key, 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