Class TestSpanData
java.lang.Object
io.opentelemetry.sdk.testing.trace.TestSpanData
- All Implemented Interfaces:
io.opentelemetry.sdk.trace.data.SpanData
@Immutable
public abstract class TestSpanData
extends Object
implements io.opentelemetry.sdk.trace.data.SpanData
Immutable representation of all data collected by the
Span
class.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TestSpanData.Builderbuilder()Creates a new Builder for creating an SpanData instance.final booleanhasEnded()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.trace.data.SpanData
getAttributes, getEndEpochNanos, getEvents, getInstrumentationLibraryInfo, getKind, getLinks, getName, getParentSpanContext, getParentSpanId, getResource, getSpanContext, getSpanId, getStartEpochNanos, getStatus, getTotalAttributeCount, getTotalRecordedEvents, getTotalRecordedLinks, getTraceId
-
Method Details
-
builder
Creates a new Builder for creating an SpanData instance.- Returns:
- a new Builder.
-
hasEnded
public final boolean hasEnded()- Specified by:
hasEndedin interfaceio.opentelemetry.sdk.trace.data.SpanData
-