Uses of Interface
io.opentelemetry.api.trace.SpanBuilder
Packages that use SpanBuilder
Package
Description
API for distributed tracing.
-
Uses of SpanBuilder in io.opentelemetry.api.incubator.trace
Subinterfaces of SpanBuilder in io.opentelemetry.api.incubator.trace -
Uses of SpanBuilder in io.opentelemetry.api.trace
Methods 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.Tracer.spanBuilder(String spanName) Returns aSpanBuilderto create and start a newSpan.