-
public final class DatadogSpanIdConverterFor library usage only. Interface for converting Datadog span IDs between hexadecimal and decimal representations.
-
-
Method Summary
Modifier and Type Method Description final LongfromHex(String spanId)Converts a hexadecimal string representation of an spanId into its equivalent long value. final StringtoHexStringPadded(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. -
-
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.
-
-
-
-