Crypto Server
    Preparing search index...

    Function generateTraceparent

    • Generates a compliant W3C Trace Context Level 1 traceparent header.

      Parameters

      • sampled: boolean = true

        Whether to mark the trace as sampled (default true -> "01").

      Returns string

      Formatted traceparent string.