Interface TraceContext


public interface TraceContext
Contains trace and span data.
Since:
1.0.0
  • Field Details

    • NOOP

      static final TraceContext NOOP
      A noop implementation.
  • Method Details

    • traceId

      String traceId()
      Trace id.
      Returns:
      trace id of a span
    • parentId

      @Nullable String parentId()
      Parent span id.
      Returns:
      parent span id or null if one is not set
    • spanId

      String spanId()
      Span id.
      Returns:
      span id
    • sampled

      Boolean sampled()
      Returns:
      true when sampled, false when not sampled and null when sampling decision should be deferred