Interface InMemorySpan

  • All Superinterfaces:
    InMemoryTraceState, io.opentracing.Span

    public interface InMemorySpan
    extends io.opentracing.Span, InMemoryTraceState
    A span that allows reading values at runtime.
    • Method Detail

      • context

        InMemorySpanContext context()
        Specified by:
        context in interface io.opentracing.Span
      • operationName

        java.lang.String operationName()
        Returns the operation name.
        Returns:
        operation name
      • references

        java.lang.Iterable<? extends InMemoryReference> references()
        Returns an immutable list of references.
        Returns:
        list of references
      • traceId

        default long traceId()
        Returns the low 64 bits of trace ID.
        Returns:
        low 64 bits of the trace ID
      • traceIdHigh

        default long traceIdHigh()
        Returns the high 64 bits for 128-bit trace IDs, or 0L for 64-bit trace IDs.
        Returns:
        high 64 bits of the trace ID
      • spanId

        default long spanId()
        Returns the span ID.
        Returns:
        span ID
      • parentSpanId

        @Nullable
        default java.lang.Long parentSpanId()
        Returns the parent span ID, could be null.
        Returns:
        parent span ID
      • nonnullParentSpanIdHex

        default java.lang.String nonnullParentSpanIdHex()
        Returns the parent span ID in hex. Returns "null" if the parent span ID is not present.
        Returns:
        parent span ID in hex
      • tags

        java.util.Map<java.lang.String,​java.lang.Object> tags()
        Returns an unmodifiable view of the tags.
        Returns:
        the tags
      • logs

        @Nullable
        java.lang.Iterable<? extends InMemorySpanLog> logs()
        Returns an unmodifiable view of logs. This may return null if the logs are not persisted.
        Returns:
        the logs
      • startEpochMicros

        long startEpochMicros()
        Returns the starting epoch in milliseconds. May return -1 if the span is not sampled.
        Returns:
        starting epoch in milliseconds