@grow-codes/datadog-apm - v0.1.1
    Preparing search index...

    Function fromDatadogTraceId

    • Joins a Datadog trace id (low 64 bits in decimal, optional _dd.p.tid high half in hex) into a 32-character OpenTelemetry trace id. Without high64Hex the high half is zero.

      Parameters

      • low64Decimal: string
      • Optionalhigh64Hex: string | null

      Returns string

      fromDatadogTraceId("1", "ffffffffffffffff") // "ffffffffffffffff0000000000000001"
      fromDatadogTraceId("42") // "0000000000000000000000000000002a"