Langfuse JS/TS SDKs
    Preparing search index...

    Function getActiveSpanId

    • Gets the current active observation ID.

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

      Returns undefined | string

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