OpenInference JS
    Preparing search index...
    • Returns the parent span ID of a span, or undefined for a root span. OpenTelemetry JS SDK 2.x removed ReadableSpan.parentSpanId in favor of parentSpanContext, so read the 2.x shape first and fall back to the 1.x field.

      Parameters

      • span: object

      Returns string | undefined