Class Span

java.lang.Object
com.palantir.tracing.api.Span

@Immutable public abstract class Span extends Object
A value class representing a completed Span, see OpenSpan for a description of the fields.
  • Constructor Details

    • Span

      public Span()
  • Method Details

    • getTraceId

      public abstract String getTraceId()
    • getParentSpanId

      public abstract Optional<String> getParentSpanId()
    • getSpanId

      public abstract String getSpanId()
    • type

      public abstract SpanType type()
    • getOperation

      public abstract String getOperation()
    • getStartTimeMicroSeconds

      public abstract long getStartTimeMicroSeconds()
    • getDurationNanoSeconds

      public abstract long getDurationNanoSeconds()
    • getMetadata

      public abstract Map<String,String> getMetadata()
      Returns a map of custom key-value metadata with which spans will be annotated. For example, a "userId" key could be added to associate spans with the requesting user.
    • builder

      public static Span.Builder builder()