Class AbstractSpan

java.lang.Object
org.opensearch.telemetry.tracing.AbstractSpan
All Implemented Interfaces:
Span

@InternalApi public abstract class AbstractSpan extends Object implements Span
Base span
Opensearch.internal:
  • Constructor Details

    • AbstractSpan

      protected AbstractSpan(String spanName, Span parentSpan)
      Base constructor
      Parameters:
      spanName - name of the span
      parentSpan - span's parent span
  • Method Details

    • getParentSpan

      public Span getParentSpan()
      Description copied from interface: Span
      Returns span's parent span
      Specified by:
      getParentSpan in interface Span
    • getSpanName

      public String getSpanName()
      Description copied from interface: Span
      Returns the name of the Span
      Specified by:
      getSpanName in interface Span