Takaro - v0.4.11
    Preparing search index...

    Function withSpan

    • Wrap an async operation in a span. If tracing is disabled, just runs the function directly.

      Type Parameters

      • T

      Parameters

      • name: string
      • fn: (span: Span | null) => Promise<T>
      • Optionalattributes: Record<string, string | number | boolean>

      Returns Promise<T>