Takaro - v0.4.11
    Preparing search index...

    Function withActiveSpan

    • Forks the current scope and sets the provided span as active span in the context of the provided callback.

      Type Parameters

      • T

      Parameters

      • span: Span

        Spans started in the context of the provided callback will be children of this span.

      • callback: (scope: Scope) => T

        Execution context in which the provided span will be active. Is passed the newly forked scope.

      Returns T

      the value returned from the provided callback function.