Circle V2 API Docs
    Preparing search index...

    Function unpackTraceContext

    • Inverse of packWithTraceContext. Returns the original params plus an OTel Context the caller should wrap consumer execution in via context.with(traceContext, () => ...).

      Falls back gracefully if the message wasn't packed (e.g. legacy queue messages enqueued before this helper was introduced) by returning the message as-is and the active context.

      Parameters

      • message: unknown

      Returns { params: unknown; traceContext: Context }