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.io.opentelemetry.sdk.common.InstrumentationLibraryInfoDeprecated.abstract io.opentelemetry.sdk.common.InstrumentationScopeInfofinal 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, 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
-
getInstrumentationLibraryInfo
@Deprecated public io.opentelemetry.sdk.common.InstrumentationLibraryInfo getInstrumentationLibraryInfo()Deprecated.- Specified by:
getInstrumentationLibraryInfoin interfaceio.opentelemetry.sdk.trace.data.SpanData
-
getInstrumentationScopeInfo
public abstract io.opentelemetry.sdk.common.InstrumentationScopeInfo getInstrumentationScopeInfo()- Specified by:
getInstrumentationScopeInfoin interfaceio.opentelemetry.sdk.trace.data.SpanData
-