@launchdarkly/observability-react-native
    Preparing search index...

    Interface LDTracer

    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 Tracer API (startSpan, startActiveSpan) plus the async-safe LDTracer.withSpan helper.

    interface LDTracer {
        withSpan<T>(
            spanName: string,
            fn: (scope: SpanScope) => T,
            options?: WithSpanOptions,
        ): T;
    }

    Hierarchy

    • Tracer
      • LDTracer
    Index

    Methods

    Methods