@determinate-systems/detsys-ts
    Preparing search index...

    Function group

    • Run a callback inside both a collapsible group in the workflow log and an active OpenTelemetry span.

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

      name is the span name and label is the console heading

      Type Parameters

      • T

      Parameters

      • name: string

        The span name, such as install_nix.

      • label: string

        The heading of the group in the workflow log.

      • fn: (group: Group) => Promise<T>

        The work of the group. It receives the group's span.

      • Optionalattributes: Attributes

        Attributes for the span.

      Returns Promise<T>