Interface InMemorySpanBuilder
-
- All Superinterfaces:
io.opentracing.Tracer.SpanBuilder
public interface InMemorySpanBuilder extends io.opentracing.Tracer.SpanBuilder
ATracer.SpanBuilder
that works withInMemorySpan
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InMemorySpanBuilder
addReference(java.lang.String referenceType, io.opentracing.SpanContext referencedContext)
InMemorySpanBuilder
addReference(java.lang.String referenceType, InMemorySpanContext referencedContext)
Same asaddReference(String, SpanContext)
but requires aInMemorySpanContext
.InMemorySpanBuilder
asChildOf(io.opentracing.Span parent)
InMemorySpanBuilder
asChildOf(io.opentracing.SpanContext parent)
InMemorySpanBuilder
ignoreActiveSpan()
InMemorySpan
start()
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)
-
-
-
Method Detail
-
asChildOf
InMemorySpanBuilder asChildOf(io.opentracing.SpanContext parent)
- Specified by:
asChildOf
in interfaceio.opentracing.Tracer.SpanBuilder
-
asChildOf
InMemorySpanBuilder asChildOf(io.opentracing.Span parent)
- Specified by:
asChildOf
in interfaceio.opentracing.Tracer.SpanBuilder
-
addReference
default InMemorySpanBuilder addReference(java.lang.String referenceType, io.opentracing.SpanContext referencedContext)
- Specified by:
addReference
in interfaceio.opentracing.Tracer.SpanBuilder
- Throws:
java.lang.ClassCastException
- ifreferencedContext
is not of typeInMemorySpanContext
.
-
addReference
InMemorySpanBuilder addReference(java.lang.String referenceType, InMemorySpanContext referencedContext)
Same asaddReference(String, SpanContext)
but requires aInMemorySpanContext
.- Parameters:
referenceType
- the reference type.referencedContext
- the reference context.- Returns:
this
.
-
ignoreActiveSpan
InMemorySpanBuilder ignoreActiveSpan()
- Specified by:
ignoreActiveSpan
in interfaceio.opentracing.Tracer.SpanBuilder
-
withTag
InMemorySpanBuilder withTag(java.lang.String key, java.lang.String value)
- Specified by:
withTag
in interfaceio.opentracing.Tracer.SpanBuilder
-
withTag
InMemorySpanBuilder withTag(java.lang.String key, boolean value)
- Specified by:
withTag
in interfaceio.opentracing.Tracer.SpanBuilder
-
withTag
InMemorySpanBuilder withTag(java.lang.String key, java.lang.Number value)
- Specified by:
withTag
in interfaceio.opentracing.Tracer.SpanBuilder
-
withStartTimestamp
InMemorySpanBuilder withStartTimestamp(long microseconds)
- Specified by:
withStartTimestamp
in interfaceio.opentracing.Tracer.SpanBuilder
-
start
InMemorySpan start()
- Specified by:
start
in interfaceio.opentracing.Tracer.SpanBuilder
-
-