Uses of Interface
io.opentelemetry.api.trace.SpanBuilder
Packages that use SpanBuilder
Package
Description
API for distributed tracing.
The OpenTelemetry SDK implementation of tracing.
-
Uses of SpanBuilder in io.opentelemetry.api.incubator.trace
Subinterfaces of SpanBuilder in io.opentelemetry.api.incubator.traceClasses in io.opentelemetry.api.incubator.trace that implement SpanBuilderModifier and TypeClassDescriptionprivate static final class
Methods in io.opentelemetry.api.incubator.trace that return SpanBuilder -
Uses of SpanBuilder in io.opentelemetry.api.trace
Classes in io.opentelemetry.api.trace that implement SpanBuilderMethods in io.opentelemetry.api.trace that return SpanBuilderModifier and TypeMethodDescriptionSpanBuilder.addLink
(SpanContext spanContext) Adds a link to the newly createdSpan
.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.setAttribute
(String key, boolean value) Sets an attribute to the newly createdSpan
.SpanBuilder.setAttribute
(String key, double value) Sets an attribute to the newly createdSpan
.SpanBuilder.setAttribute
(String key, long value) Sets an attribute to the newly createdSpan
.SpanBuilder.setAttribute
(String key, String value) Sets an attribute to the newly createdSpan
.SpanBuilder.setNoParent()
Sets the option to become a rootSpan
for a new trace.Sets the parent to use from the specifiedContext
.SpanBuilder.setSpanKind
(SpanKind spanKind) Sets theSpanKind
for the newly createdSpan
.SpanBuilder.setStartTimestamp
(long startTimestamp, TimeUnit unit) Sets an explicit start timestamp for the newly createdSpan
.default SpanBuilder
SpanBuilder.setStartTimestamp
(Instant startTimestamp) Sets an explicit start timestamp for the newly createdSpan
.DefaultTracer.spanBuilder
(String spanName) Tracer.spanBuilder
(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 SpanBuilderModifier and TypeClassDescription(package private) final class
SdkSpanBuilder
is SDK implementation ofSpanBuilder
.Methods in io.opentelemetry.sdk.trace that return SpanBuilder