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.
ReadableSpan.parentSpanId
parentSpanContext
Returns the parent span ID of a span, or undefined for a root span. OpenTelemetry JS SDK 2.x removed
ReadableSpan.parentSpanIdin favor ofparentSpanContext, so read the 2.x shape first and fall back to the 1.x field.