footprintjs - v11.2.0
    Preparing search index...

    Function formatTraceparent

    • Write a version-00 traceparent — for an outbound call that continues this run's trace. Both ids must be W3C ids and flags a byte of 2 lowercase hex (refused by name otherwise, like a parse); sampled, when given, sets or clears bit 0 of the flags. formatTraceparent(parseTraceparent(h)) is h for any valid version-00 h.

      Parameters

      Returns string

      formatTraceparent({ traceId, operationId: mySpanId, sampled: true }); // '00-<traceId>-<mySpanId>-01'