Start a span, run fn within it, and end the span automatically.
Same behavior as Observe.withSpan: the callback receives a
SpanScope whose SpanScope.child method parents spans
correctly across awaits in React Native.
Optionaloptions: WithSpanOptions
An OpenTelemetry Tracer enriched with withSpan for React Native, where the active context is tracked only synchronously.
Returned by Observe.getTracer. Implements the full standard
TracerAPI (startSpan,startActiveSpan) plus the async-safe LDTracer.withSpan helper.