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 theSpanclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestSpanData.BuilderABuilderclass forTestSpanData.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestSpanData.Builderbuilder()Creates a new Builder for creating an SpanData instance.booleanhasEnded()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
builder
public static TestSpanData.Builder 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
-
-