Class TestSpanData

  • All Implemented Interfaces:
    io.opentelemetry.sdk.trace.data.SpanData

    @Immutable
    public abstract class TestSpanData
    extends java.lang.Object
    implements io.opentelemetry.sdk.trace.data.SpanData
    Immutable representation of all data collected by the Span class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TestSpanData.Builder builder()
      Creates a new Builder for creating an SpanData instance.
      boolean hasEnded()  
      • 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:
        hasEnded in interface io.opentelemetry.sdk.trace.data.SpanData