Module brave

Class TraceIdContext


  • public final class TraceIdContext
    extends SamplingFlags
    Contains inbound trace ID and sampling flags, used when users control the root trace ID, but not the span ID (ex Amazon X-Ray or other correlation).
    • Method Detail

      • traceIdHigh

        public long traceIdHigh()
        When non-zero, the trace containing this span uses 128-bit trace identifiers.
      • traceId

        public long traceId()
        Unique 8-byte identifier for a trace, set on all spans within it.
      • toString

        public java.lang.String toString()
        Returns $traceId
        Overrides:
        toString in class SamplingFlags
      • equals

        public boolean equals​(java.lang.Object o)
        Only includes mandatory fields traceIdHigh() and traceId()
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Only includes mandatory fields traceIdHigh() and traceId()
        Overrides:
        hashCode in class java.lang.Object