Package 

Interface DatadogTraceId


  • 
    public interface DatadogTraceId
    
                        

    Represents a Datadog trace ID, which is a unique identifier for a specific trace.

    • Method Summary

      Modifier and Type Method Description
      abstract String toHexStringPadded(Integer size) Returns the lower-case zero-padded hexadecimal String representation of the trace ID.
      abstract String toHexString() Converts the current trace ID into its hexadecimal string representation.
      abstract Long toLong() Converts the Datadog trace ID to its numeric representation as a Long.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toHexStringPadded

         abstract String toHexStringPadded(Integer size)

        Returns the lower-case zero-padded hexadecimal String representation of the trace ID. The size will be rounded up to 16 or 32 characters.

        Parameters:
        size - The size in characters of the zero-padded String (rounded up to 16 or 32)
      • toHexString

         abstract String toHexString()

        Converts the current trace ID into its hexadecimal string representation.

      • toLong

         abstract Long toLong()

        Converts the Datadog trace ID to its numeric representation as a Long.