intellibrix v1.0.0
    Preparing search index...

    Function withSpan

    • Runs fn inside a span named name, recording any thrown exception and always ending the span. Test-only escape hatch: pass a tracer to avoid the memoized global.

      Type Parameters

      • T

      Parameters

      • name: string
      • fn: (span: Span) => Promise<T>
      • tracer: Tracer = ...

      Returns Promise<T>