Interface InMemorySpanContext

All Superinterfaces:
io.opentracing.SpanContext
All Known Implementing Classes:
DefaultInMemorySpanContext

public interface InMemorySpanContext extends io.opentracing.SpanContext
A span that allows reading values at runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns whether the span should be sampled or null if the sampling was not decided.
    Returns the parent span ID in hex, or null if the parent span ID is not present.

    Methods inherited from interface io.opentracing.SpanContext

    baggageItems, toSpanId, toTraceId
  • Method Details

    • isSampled

      @Nullable Boolean isSampled()
      Returns whether the span should be sampled or null if the sampling was not decided.
      Returns:
      whether the span should be sampled
    • parentSpanId

      @Nullable String parentSpanId()
      Returns the parent span ID in hex, or null if the parent span ID is not present.
      Returns:
      parent span ID in hex