Uses of Interface
io.opentelemetry.api.trace.Span
Packages that use Span
Package
Description
API for distributed tracing.
The OpenTelemetry SDK implementation of tracing.
-
Uses of Span in io.opentelemetry.api.incubator.trace
Method parameters in io.opentelemetry.api.incubator.trace with type arguments of type SpanModifier and TypeMethodDescription<T, E extends Throwable>
TExtendedSpanBuilder.startAndCall(SpanCallable<T, E> spanCallable, BiConsumer<Span, Throwable> handleException) Runs the givenSpanCallableinside of the span created by the givenSpanBuilder.<E extends Throwable>
voidExtendedSpanBuilder.startAndRun(SpanRunnable<E> runnable, BiConsumer<Span, Throwable> handleException) Runs the givenSpanRunnableinside of the span created by the givenSpanBuilder. -
Uses of Span in io.opentelemetry.api.trace
Methods in io.opentelemetry.api.trace that return SpanModifier and TypeMethodDescriptiondefault SpanAdds an event to theSpan.default SpanAdds an event to theSpanwith the giventimestamp, as nanos since epoch.Span.addEvent(String name, Attributes attributes) Adds an event to theSpanwith the givenAttributes.Span.addEvent(String name, Attributes attributes, long timestamp, TimeUnit unit) default SpanSpan.addEvent(String name, Attributes attributes, Instant timestamp) default SpanAdds an event to theSpanwith the giventimestamp, as nanos since epoch.default SpanSpan.addLink(SpanContext spanContext) Adds a link to thisSpan.default SpanSpan.addLink(SpanContext spanContext, Attributes attributes) Adds a link to thisSpan.static SpanSpan.current()static SpanSpan.fromContext(Context context) static SpanSpan.fromContextOrNull(Context context) static SpanSpan.getInvalid()Returns an invalidSpan.default SpanSpan.recordException(Throwable exception) Span.recordException(Throwable exception, Attributes additionalAttributes) default SpanSpan.setAllAttributes(Attributes attributes) Sets attributes to theSpan.default SpanSpan.setAttribute(AttributeKey<Long> key, int value) Sets an attribute to theSpan.<T> SpanSpan.setAttribute(AttributeKey<T> key, T value) Sets an attribute to theSpan.default SpanSpan.setAttribute(String key, boolean value) Sets an attribute to theSpan.default SpanSpan.setAttribute(String key, double value) Sets an attribute to theSpan.default SpanSpan.setAttribute(String key, long value) Sets an attribute to theSpan.default SpanSpan.setAttribute(String key, String value) Sets an attribute to theSpan.default SpanSpan.setStatus(StatusCode statusCode) Sets the status to theSpan.Span.setStatus(StatusCode statusCode, String description) Sets the status to theSpan.SpanBuilder.startSpan()Starts a newSpan.Span.updateName(String name) Updates theSpanname.static SpanSpan.wrap(SpanContext spanContext) Returns a non-recordingSpanthat holds the providedSpanContextbut has no functionality. -
Uses of Span in io.opentelemetry.sdk.trace
Subinterfaces of Span in io.opentelemetry.sdk.traceModifier and TypeInterfaceDescriptioninterfaceA combination of the write methods from theSpaninterface and the read methods from theReadableSpaninterface.