Langfuse JS/TS SDKs
    Preparing search index...

    Function getActiveTraceId

    • Gets the current active trace ID.

      If there is no span in the current context, returns undefined.

      Returns undefined | string

      The trace ID of the currently active span, or undefined if no span is active