Uses of Interface
io.opentelemetry.api.trace.SpanBuilder
-
Packages that use SpanBuilder Package Description io.opentelemetry.api.incubator.trace io.opentelemetry.api.trace API for distributed tracing.io.opentelemetry.sdk.trace The OpenTelemetry SDK implementation of tracing. -
-
Uses of SpanBuilder in io.opentelemetry.api.incubator.trace
Subinterfaces of SpanBuilder in io.opentelemetry.api.incubator.trace Modifier and Type Interface Description interface
ExtendedSpanBuilder
ExtendedSpanBuilder
with experimental APIs.Classes in io.opentelemetry.api.incubator.trace that implement SpanBuilder Modifier and Type Class Description private static class
ExtendedDefaultTracer.NoopSpanBuilder
Methods in io.opentelemetry.api.incubator.trace that return SpanBuilder Modifier and Type Method Description SpanBuilder
ExtendedDefaultTracer. spanBuilder(java.lang.String spanName)
-
Uses of SpanBuilder in io.opentelemetry.api.trace
Classes in io.opentelemetry.api.trace that implement SpanBuilder Modifier and Type Class Description private static class
DefaultTracer.NoopSpanBuilder
Methods in io.opentelemetry.api.trace that return SpanBuilder Modifier and Type Method Description SpanBuilder
SpanBuilder. addLink(SpanContext spanContext)
Adds a link to the newly createdSpan
.SpanBuilder
SpanBuilder. addLink(SpanContext spanContext, Attributes attributes)
Adds a link to the newly createdSpan
.default SpanBuilder
SpanBuilder. setAllAttributes(Attributes attributes)
Sets attributes to theSpanBuilder
.<T> SpanBuilder
SpanBuilder. setAttribute(AttributeKey<T> key, T value)
Sets an attribute to the newly createdSpan
.SpanBuilder
SpanBuilder. setAttribute(java.lang.String key, boolean value)
Sets an attribute to the newly createdSpan
.SpanBuilder
SpanBuilder. setAttribute(java.lang.String key, double value)
Sets an attribute to the newly createdSpan
.SpanBuilder
SpanBuilder. setAttribute(java.lang.String key, long value)
Sets an attribute to the newly createdSpan
.SpanBuilder
SpanBuilder. setAttribute(java.lang.String key, java.lang.String value)
Sets an attribute to the newly createdSpan
.SpanBuilder
SpanBuilder. setNoParent()
Sets the option to become a rootSpan
for a new trace.SpanBuilder
SpanBuilder. setParent(Context context)
Sets the parent to use from the specifiedContext
.SpanBuilder
SpanBuilder. setSpanKind(SpanKind spanKind)
Sets theSpanKind
for the newly createdSpan
.SpanBuilder
SpanBuilder. setStartTimestamp(long startTimestamp, java.util.concurrent.TimeUnit unit)
Sets an explicit start timestamp for the newly createdSpan
.default SpanBuilder
SpanBuilder. setStartTimestamp(java.time.Instant startTimestamp)
Sets an explicit start timestamp for the newly createdSpan
.SpanBuilder
DefaultTracer. spanBuilder(java.lang.String spanName)
SpanBuilder
Tracer. spanBuilder(java.lang.String spanName)
Returns aSpanBuilder
to create and start a newSpan
. -
Uses of SpanBuilder in io.opentelemetry.sdk.trace
Classes in io.opentelemetry.sdk.trace that implement SpanBuilder Modifier and Type Class Description (package private) class
SdkSpanBuilder
SdkSpanBuilder
is SDK implementation ofSpanBuilder
.Methods in io.opentelemetry.sdk.trace that return SpanBuilder Modifier and Type Method Description SpanBuilder
SdkTracer. spanBuilder(java.lang.String spanName)
-