public interface InMemorySpanBuilder
extends io.opentracing.Tracer.SpanBuilder
Tracer.SpanBuilder
that works with InMemorySpan
instances.Modifier and Type | Method and Description |
---|---|
InMemorySpanBuilder |
addReference(java.lang.String referenceType,
InMemorySpanContext referencedContext)
Same as
addReference(String, SpanContext) but requires a InMemorySpanContext . |
default InMemorySpanBuilder |
addReference(java.lang.String referenceType,
io.opentracing.SpanContext referencedContext) |
InMemorySpanBuilder |
asChildOf(io.opentracing.Span parent) |
InMemorySpanBuilder |
asChildOf(io.opentracing.SpanContext parent) |
InMemorySpanBuilder |
ignoreActiveSpan() |
InMemorySpan |
start() |
InMemoryScope |
startActive(boolean finishSpanOnClose) |
InMemorySpan |
startManual()
Deprecated.
Tracer.SpanBuilder.startManual() is deprecated. |
InMemorySpanBuilder |
withStartTimestamp(long microseconds) |
InMemorySpanBuilder |
withTag(java.lang.String key,
boolean value) |
InMemorySpanBuilder |
withTag(java.lang.String key,
java.lang.Number value) |
InMemorySpanBuilder |
withTag(java.lang.String key,
java.lang.String value) |
InMemorySpanBuilder asChildOf(io.opentracing.SpanContext parent)
asChildOf
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpanBuilder asChildOf(io.opentracing.Span parent)
asChildOf
in interface io.opentracing.Tracer.SpanBuilder
default InMemorySpanBuilder addReference(java.lang.String referenceType, io.opentracing.SpanContext referencedContext)
addReference
in interface io.opentracing.Tracer.SpanBuilder
java.lang.ClassCastException
- if referencedContext
is not of type InMemorySpanContext
.InMemorySpanBuilder addReference(java.lang.String referenceType, InMemorySpanContext referencedContext)
addReference(String, SpanContext)
but requires a InMemorySpanContext
.referenceType
- the reference type.referencedContext
- the reference context.this
.InMemorySpanBuilder ignoreActiveSpan()
ignoreActiveSpan
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpanBuilder withTag(java.lang.String key, java.lang.String value)
withTag
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpanBuilder withTag(java.lang.String key, boolean value)
withTag
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpanBuilder withTag(java.lang.String key, java.lang.Number value)
withTag
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpanBuilder withStartTimestamp(long microseconds)
withStartTimestamp
in interface io.opentracing.Tracer.SpanBuilder
InMemoryScope startActive(boolean finishSpanOnClose)
startActive
in interface io.opentracing.Tracer.SpanBuilder
@Deprecated InMemorySpan startManual()
Tracer.SpanBuilder.startManual()
is deprecated.startManual
in interface io.opentracing.Tracer.SpanBuilder
InMemorySpan start()
start
in interface io.opentracing.Tracer.SpanBuilder