detsys-ts
    Preparing search index...

    Function group

    • Run fn inside both a collapsible group in the workflow log and an active OpenTelemetry span of the same name.

      This is the replacement for a startGroup/endGroup pair: the group closes and the span ends even if fn throws, and a throwing fn marks the span failed before re-throwing.

      Type Parameters

      • T

      Parameters

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

      Returns Promise<T>