Package 

Class DatadogSpanIdConverter


  • 
    public final class DatadogSpanIdConverter
    
                        

    For library usage only. Interface for converting Datadog span IDs between hexadecimal and decimal representations.

    • Method Summary

      Modifier and Type Method Description
      final Long fromHex(String spanId) Converts a hexadecimal string representation of an spanId into its equivalent long value.
      final String toHexStringPadded(Long spanId) Converts the given long-based span ID into a hexadecimal string representation, ensuring that the resulting string has a padded length sufficient for hexadecimal IDs.
      • Methods inherited from class java.lang.Object

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

      • fromHex

         final Long fromHex(String spanId)

        Converts a hexadecimal string representation of an spanId into its equivalent long value.

        Parameters:
        spanId - The hexadecimal string to convert.
      • toHexStringPadded

         final String toHexStringPadded(Long spanId)

        Converts the given long-based span ID into a hexadecimal string representation, ensuring that the resulting string has a padded length sufficient for hexadecimal IDs.

        Parameters:
        spanId - The span ID to convert, represented as a long value.