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 classMethods 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 SpanBuilderSpanBuilder.setAllAttributes(Attributes attributes) Sets attributes to theSpanBuilder.<T> SpanBuilderSpanBuilder.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 rootSpanfor a new trace.Sets the parent to use from the specifiedContext.SpanBuilder.setSpanKind(SpanKind spanKind) Sets theSpanKindfor the newly createdSpan.SpanBuilder.setStartTimestamp(long startTimestamp, TimeUnit unit) Sets an explicit start timestamp for the newly createdSpan.default SpanBuilderSpanBuilder.setStartTimestamp(Instant startTimestamp) Sets an explicit start timestamp for the newly createdSpan.DefaultTracer.spanBuilder(String spanName) Tracer.spanBuilder(String spanName) Returns aSpanBuilderto 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 classSdkSpanBuilderis SDK implementation ofSpanBuilder.Methods in io.opentelemetry.sdk.trace that return SpanBuilder