Function isValidTraceId

  • Is the provided W3c Trace Id a valid string representation, it must be a 32-character string of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736. If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.

    Parameters

    • value: string

      The W3c trace Id to be validated

    Returns boolean

    true if valid otherwise false

Generated using TypeDoc