Binds a parent span to a function, ensuring that the function executes within the context of the span.

  • Type Parameters

    • T

      The type of the function being bound.

    Parameters

    • parentSpan: Span

      The parent span to bind.

    • func: T

      The function to bind.

    Returns T

    The bound function.