detsys-ts
    Preparing search index...

    Function withSpan

    • Run fn inside a new active span, ending the span when it settles and marking it failed if it throws. The error is always re-thrown: this records, it does not swallow.

      Type Parameters

      • T

      Parameters

      • name: string
      • fn: (span: Span) => Promise<T>
      • Optionalattributes: Attributes

      Returns Promise<T>